A invoice api generator Built with FastApi + sqlalchemy + oauth2
- create virtual environment python3 -m venv venv
- activate the environment source ${pwd}/venv/bin/activate
- create .env file and copy .env-example on it
- intall 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
Happy debugging :)
for those who don't like to deal with alembic you can add this line to the main.py file: models.Base.metadata.create_all(bind=engine) just after the app instance
You can test out this at 🔔 https://invoice-genera.herokuapp.com/docs 🔔