thiere18 / invoice-generator-api

A invoice api generator with FastApi + sqlalchemy + oauth2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

invoice-generator-api

A invoice api generator Built with FastApi + sqlalchemy + oauth2

Configuration for local development

  1. create virtual environment python3 -m venv venv
  2. activate the environment source ${pwd}/venv/bin/activate
  3. create .env file and copy .env-example on it
  4. intall dependencies pip install -r requirements.txt
  5. run migration alembic upgrade head/
  6. start the server with uvicorn uvicorn app.main:app --reload

conf for docker environment

1.modify variables on docker-compose.yml then run
docker-compose up

Happy debugging :)

important

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 🔔

About

A invoice api generator with FastApi + sqlalchemy + oauth2

License:MIT License


Languages

Language:Python 98.1%Language:Mako 1.2%Language:Dockerfile 0.5%Language:Procfile 0.2%