- Clone the repo
$ git clone https://github.com/DSC-VJTI/Boutique-Server
- Create a
virtual environment
and install the requirements
$ pip install -r requirements_dev.txt
- Install
pre-commit
hooks
$ pre-commit install
- You need to set the following environment variables
SECRET_KEY // JWT secret
ALGORITHM // Algorithm for encoding JWT
ACCESS_TOKEN_EXPIRE_MINUTES // JWT token expiration in minutes
DATABASE_URL // Database URL
- Run the project
- Using
main.py
// using main.py
$ cd src/app
$ python main.py
- Using
uvicorn
command
$ uvicorn --app-dir="./src/app" --reload main:app