A Backend dev project based on FastAPI framework
- create virtual environment python3 -m venv venv
- activate the environment source ${pwd}/venv/bin/activate
- create .env file and copy .env-example on it
- install dependencies pip install -r requirements.txt
- run migration alembic upgrade head
- start the server with uvicorn uvicorn app.main:app --reload
- the server should be runing on 🍎 http://127.0.0.1:8000
1.modify variables on docker-compose.yml then run docker-compose up
if you don't like to use migration(alembic), you can add this line to the main.py file: models.Base.metadata.create_all(bind=engine) just after the app instance