This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
rotini/backend
Marc Cataford ee9a9d8dc3
test(backend): list+details tests (#12)
* build(backend): more verbosity on test + error handling

* fix(backend): raise HTTPException, not return on details fetch

* fix(backend): get inserted ID instead of row tuple

* test(backend): add tests for list + details routes
2023-08-12 13:24:25 -04:00
..
rotini test(backend): list+details tests (#12) 2023-08-12 13:24:25 -04:00
script test(backend): list+details tests (#12) 2023-08-12 13:24:25 -04:00
tests test(backend): list+details tests (#12) 2023-08-12 13:24:25 -04:00
.pylintrc feat(backend): sub fetch endpoints (#2) 2023-08-08 23:49:54 -04:00
.python-version feat(backend): sub fetch endpoints (#2) 2023-08-08 23:49:54 -04:00
docker-compose.yml feat(backend): sub fetch endpoints (#2) 2023-08-08 23:49:54 -04:00
pyproject.toml build(backend): add db-aware testing tooling (#9) 2023-08-12 11:45:51 -04:00
README.md feat(backend): sub fetch endpoints (#2) 2023-08-08 23:49:54 -04:00
requirements.in feat(backend): sub fetch endpoints (#2) 2023-08-08 23:49:54 -04:00
requirements.txt feat(backend): sub fetch endpoints (#2) 2023-08-08 23:49:54 -04:00
requirements_dev.in build(backend): test tooling setup + taskfile tidy (#7) 2023-08-11 13:58:22 -04:00
requirements_dev.txt build(backend): test tooling setup + taskfile tidy (#7) 2023-08-11 13:58:22 -04:00

Rotini backend

Development

Before starting, make sure to run the root bootstrap script so the task commands are enabled.

Locally, a Postgres database that can be used for development can be started via docker-compose up -d.

An envfile should be present at .env and should define:

  • DATABASE_USERNAME, the username to initialize the DB user with;
  • DATABASE_PASSWORD, the password to assign to that test user;
  • DATABASE_HOST, the host on which the database runs;
  • DATABASE_PORT, the port on which the database runs;
  • DATABASE_NAME, name of the database within the Postgres instance.