Welcome to the TTRPG API!
Localhost changes based on where you run it from
- CLI: 127.0.0.1
- Docker: 0.0.0.0
As a source of truth please refer to this confluence page.
Project Name | Description | Ports |
---|---|---|
Grafana | service | 3000 |
UI | ui ports | 4xxx |
registry | containers | 5001 |
API | api ports | 8xxx - 8100 |
API DOCS | api doc ports | 81xx - 8200 |
OPA | opa ports | 82xx - 8300 |
Prometheus | service | 9090 |
Project Name | Description | Ports |
---|---|---|
Grafana | service | 3000 |
local registry | containers | 5001 |
postgres | DB | 5432 |
postgres (test) | Test DB | 5433 |
pydnd | FastAPI DnD | 8001 |
pydnd: mkdocs | docs | 8201 |
pydnd: opa | opa | 8301 |
Prometheus | service | 9090 |
This is a FastAPI repository
- see
./pydnd/docs
For further documentation run
make pydnd-mkdocs
And then go to http://localhost:8001
Here's a link to the Poetry Docs
poetry was chosen as the package management solution
- article 1 (why poetry): https://hackersandslackers.com/python-poetry-package-manager/
- article 2 (general setup): https://www.pythoncheatsheet.org/blog/python-projects-with-poetry-and-vscode-part-1
- article 2.5 (vs code integration): https://www.pythoncheatsheet.org/blog/python-projects-with-poetry-and-vscode-part-2
- In general it follows this GitHub skeleton project
- This is a smaller, more lightweight version of tiangolo's skeleton project (the creator of FastAPI made a full stack project, this project is just the backend part of his project without the security stuff)
- in
./pylintrc
investigate removing the disables for [consider-using-with, broad-except] - investigate if I want to use UOW pattern or just Repository pattern