Ensure your environment is ready by following these steps:
-
Install Poetry
- For installation instructions, visit Poetry's official documentation.
-
Install Dependencies
- Run the following command to install required packages:
poetry install
- Run the following command to install required packages:
-
Activate Poetry Shell
- Activate the poetry shell to ensure dependencies are correctly managed:
poetry shell
- Activate the poetry shell to ensure dependencies are correctly managed:
-
Database Migration
- Set up your database schema with the migration command:
POSTGRES_URI=postgresql://postgres:postgres@localhost:5432/your_database alembic upgrade head
- Set up your database schema with the migration command:
-
Environment Variables
- Create a
.env
file in the src/ directory of the project and add the following environment variables:POSTGRES_URI=postgresql://postgres:postgres@localhost:5432/your_database
- Create a
To initialize the database with necessary data, execute the populate script:
python src/init_populate.py
-
cd src
-
uvicorn main:app
ruff check . --fix --unsafe-fixes --preview