Optipy is a playground FastAPI project. It has no real meaning other than me learning how to use this framework (and dive more into BE development in general).
- Python version >=3.x
- PostgreSQL
- AWS LocalStack
- pull the code
- create new PostgreSQL DB and assign a super to it
- copy the
.env.example
file and make necessary changes - create virtual env
python -m venv env
- active virtual env
source ./env/bin/activate
- install requirements
pip install -r requirements.txt
- run the AWS LocalStack
localstack start -d
- run the app
uvicorn app:main --reload
- Note: you don't need the reload flag if you don't plan to make any chagnes to the code