Commander Spellbook Backend Development Docs
This is the home page of the developer documentation for the Commander Spellbook Backend project.
Architecture
Commander Spellbook consists of three main components:
- the database, which by default is a PostgreSQL instance
- the backend, which is a single, self-contained Django project with multiple apps and dependencies
- the frontend, which is a separate React project that consumes the backend API
Environment Setup for the Backend
You need:
- Python 3.9 or higher
- To install the dependencies in
requirements.txt
usingpip install -r requirements.txt
pytest
andpytest-django
for running the unit testsflake8
for linting the code, which is mandatory for contributing otherwise the CI will fail- [Optional] VS Code with the Python extension, for development and debugging exploiting the
launch.json
configuration - [Optional] Docker and Docker Compose, for running the entire stack locally
- [Optional]
pip-tools
for managing the dependencies, in particularrequirements.in
is used to generaterequirements.txt
with the commandpip-compile
Last update:
August 11, 2024 12:34:30
Created: May 15, 2023 07:17:01
Created: May 15, 2023 07:17:01
Authors: