afstudeerprojecten / FeedbackAI-Tool-Backend

Fork from whatever alec made
0 stars 0 forks source link

Start with installing dependencies

pip install -r requirements.txt

Run on bare metal

uvicorn app.main:app --reload

Run through Docker

docker build -t feedbacktool .
docker run -p 8000:8000 feedbacktool

Notes

When updating models

Read this!

TL:DR

run this after updating models

docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=feedbacktool -p 5432:5432 postgres
alembic upgrade head
alembic revision --autogenerate -m "Your message here"
alembic upgrade head

Environment Variables

Deployment status

stable
status

canary
status