Skip to content

Gensokyo-Reimagined/Gensokyo-Reimagined-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gensokyo-Reimagined

Gensokyo-Reimagined-API

How to run

This is a fastapi project, so if you want to run it, you have to run it with uvicorn/gunicorn

Preparatory phase

It is recommended to use python -m venv venv to create a virtual environment and then enter the virtual environment

Then run pip install -r requirements.txt to install the dependency

Start running

If you need hot reload in your development environment, run uvicorn main:app --reload

For production environments, it is recommended to install the gunicorn package (pip isntall gunicorn).

Then run the gunicorn main: app - 4 - k w uvicorn. Workers. UvicornWorker

Note

more details can be found here

Config

If there is no config.yml in the project root directory, you can follow the example below to fill out the configuration file and save it to config.yml in the project root directory

database:
  host: [mysql ip]
  port: [mysql port]
  user: [user name]
  password: [user password]
  database: [database name]

About

Gensokyo-Reimagined related api, developed using fastapi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages