- clone this repo
- create virtual environtment
# for windows
$ python -m virtualenv venv
$ venv\Script\activate
# for linux / macOS
$ python3 -m virtualenv venv
source venv/bin/activate
- install all dependencies
(venv) $ pip install -r requirements.txt
- add
.env
file, look at.env.example
file - run migration with alembic
Initialize alembic
(venv) $ alembic init alembic
Make migrations
(venv) $ alembic revision -m "First migration"
Migrate
(venv) $ alembic upgrade head
- run the server
(venv) $ uvicorn main:app --reload