fastapi-svelte-template/backend
2023-05-31 23:06:49 +01:00
..
todo feat(frontend): improve Table component, add todo detail route 2023-05-31 23:06:49 +01:00
.gitignore feat(backend): add crud, routes, models and migrations 2023-05-21 02:50:44 +02:00
README.md feat: add authentication system 2023-05-31 16:37:56 +01:00
requirements.txt feat: add authentication system 2023-05-31 16:37:56 +01:00

TODO Backend

Built using fastapi.

Deployment

Database Migrations

You must run database migrations after first deploying the database, by running

sudo docker exec -w /app/todo/database -it todo-backend alembic upgrade head

once you have launched the todo-backend-container.

Development

Populate the database

You can populate the database with fake users and todo-items by running

sudo docker exec -it todo-backend ash -c 'python -c "import todo.utils.fakery as fk; fk.populate_database()"'

once you have applied all database migrations.