The core backend application for task.
Make sure that you have installed Poetry with Python 3.12.
Activate the virtual environment of Poetry:
poetry shellTo install dependencies of the project:
poetry installBefore running application and migrations, you need to export environment variables.
The variables that you need to export are listed:
SQL_DB__HOST=localhost
SQL_DB__PORT=5432
SQL_DB__USER=dbuser
SQL_DB__PASSWORD=dbpass
SQL_DB__NAME=postgres
VECTOR_DB__HOST=localhost
VECTOR_DB__KEY=secret-db-key
DROPBOX__CLIENT_ID=dropbox-client-id
DROPBOX__CLIENT_SECRET=dropbox-client-secret
DROPBOX__REDIRECT_URI=http://localhost:8000/dropbox/login/callback/
COHERE_API_KEY=cohere-api-key
After exporting environment variables,
Run
alembic upgrade headRun
uvicorn src.main:app --reloador
make run