milossekulic / Master-thesis

Python(FastAPI) application used for parking entry control.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastapi-project

A Backend dev project based on FastAPI framework

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. install 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

important

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

About

Python(FastAPI) application used for parking entry control.


Languages

Language:Python 92.6%Language:C++ 4.8%Language:Mako 1.8%Language:Dockerfile 0.7%