This directory contains the backend of the application built with FastAPI and a PostgreSQL database.
- Python 3.8 or higher
- Poetry (for dependency management)
- PostgreSQL (ensure the database server is running)
To install Poetry, follow these steps:
curl -sSL https://install.python-poetry.org | python3 -
Add Poetry to your PATH (if not automatically added):
-
Navigate to the backend directory:
cd backend
-
Install dependencies using Poetry:
poetry install
-
Set up the database with the necessary tables:
poetry run bash ./prestart.sh
-
Run the backend server:
poetry run uvicorn app.main:app --reload
-
Update configuration: Ensure you update the necessary configurations in the
.env
file, particularly the database configuration.