Skip to content

Backend code repository for OG COP (RMT) using Python FastAPI framework and sqlmodel.

Notifications You must be signed in to change notification settings

zoeyleqa/og-python-fastapi

Repository files navigation

Python FastAPI for OG COP


  • Backend code repository for OG COP (RMT)
  • Python FastAPI framework
  • Frontend code repository is og-ui
  • Re-work of previous simple fastapi app using sqlmodel.

Requirments:

  • Python 3.7+
  • Pip

Create python virtual enviroment

py -m venv env

If using VSCode, set Python interpreter path if it doesn't already pickup the virtual env.

Activate enviroment

.\env\Scripts\activate (Windows)

pip install -r requirements.dev.txt

Start server

uvicorn main:app --reload

For VSCode, I've set it up to start on 'F5' command.

OpenAPI(Swagger): http://127.0.0.1:8000/docs Redoc: http://127.0.0.1:8000/redoc

FastAPI doc page FastAPI doc page param and response FastAPI redoc page

About

Backend code repository for OG COP (RMT) using Python FastAPI framework and sqlmodel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published