Giter Site home page Giter Site logo

santospatrick / genshin-api Goto Github PK

View Code? Open in Web Editor NEW
15.0 5.0 1.0 5.62 MB

:video_game: Genshin Impact public REST API serving data from a Web Scraping approach

Home Page: https://genshin-api.santospatrick.com/docs/

JavaScript 86.36% HTML 13.35% Dockerfile 0.29%
genshin-impact genshin-api postman swagger adonisjs

genshin-api's Introduction

genshin-api

Genshin public REST API serving data from a Web Scraping approach

Aerith & tricks at Genshin Impact world giving welcome for contributors!

API Docs

Environment Swagger Online Docs
Production Swagger Production Badge

Roadmap

Feature Endpoint Status
Puppeteer Setup -
Database Setup -
Docker Setup -
Public Swagger GET /docs
Signup POST /api/v1/auth/register
Login POST /api/v1/auth/login
Characters List GET /api/v1/characters
Character Details GET /api/v1/characters/:id
Deploy v0.1.0 https://genshin-api.santospatrick.com/docs

Development

  1. Setup a PostgreSQL database (example with docker):
docker run --name database -e POSTGRES_PASSWORD=root -p 5432:5432 -d postgres
  1. Duplicate .env.example to .env fulfilling variables as needed

  2. Run the following commands:

yarn install
yarn adonis key:generate
yarn adonis migration:run
yarn dev
  1. Done 🎉 (access http://localhost:3333)

Production

  1. Clone this repo:
git clone [email protected]:santospatrick/genshin-api.git
  1. Duplicate .env.example to .env fulfilling variables as needed
cp .env.example .env
vim .env
# edit variables
  1. Run docker-compose and migrations:
docker-compose up -d
docker exec -it YourAppName sh
yarn adonis key:generate
yarn adonis migration:run
  1. Done 🎉

Postman

Download project's postman collection to test endpoints

genshin-api's People

Contributors

santospatrick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

yutongjin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.