SECTIONS
Install Python version 3.10.13 and make sure it is being used in the following steps and later during development (it is recommended to use pyenv for Python versions management)
Install Poetry
export PIP_REQUIRED_VERSION=24.2
pip install pip==${PIP_REQUIRED_VERSION} && \
pip install virtualenvwrapper && \
pip install poetry==1.8.3 && \
poetry config virtualenvs.path ${HOME}/.virtualenvs && \
poetry run pip install pip==${PIP_REQUIRED_VERSION}
git clone https://github.com/thenewboston-developers/thenewboston-Backend.git
mkdir -p local
cp thenewboston/project/settings/templates/settings.dev.py ./local/settings.dev.py
cp thenewboston/project/settings/templates/settings.unittests.py ./local/settings.unittests.py
# Known working versions described in the comments below
docker --version # Docker version 26.0.1, build d260a54
docker compose version # Docker Compose version v2.26.1
6. Commands for setting up local environment. Run the following commands:
```bash
make run-dependencies # Sets up the necessary Docker containers for Redis and PostgreSQL
make update # Installs project dependencies, pre-commit and applies database migrations
make run-server # Starts the Django development server
make run-celery # Starts the Celery worker for background tasks and LLM chatbot
make run-celery-beat # Starts the Celery Beat
Now you're all set! The backend is up and ready for action.
To contribute effectively, follow these guidelines:
master
for new features or fixes.make lint
to ensure code quality.master
. No direct pushes, please!