Skip to content

link2qaiser/thenewboston-Backend

 
 

Repository files navigation

Project setup

SECTIONS

  1. Initial Project Setup
  2. Essential Developer Guidelines

Initial Project Setup

  1. Clone the Repository
git clone https://github.com/thenewboston-developers/thenewboston-Backend.git
  1. Copy the settings templates into a new local directory:
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
  1. Install / upgrade docker as described at https://docs.docker.com/engine/install/
# Known working versions described in the comments below 

docker --version # Docker version 26.0.1, build d260a54

# (!!!) At least Docker Compose version v2.24.0 is required
docker compose version # Docker Compose version v2.26.1
  1. Commands for setting up local environment. Run the following commands:
make run-dependencies  # Sets up the necessary Docker containers for Redis and PostgreSQL
make update            # Installs project dependencies, pre-commit and applies database migrations
  1. Fire Up the Server 🚀
make run-server       # Starts the Django development server
make run-celery       # Starts the Celery worker for background tasks and LLM chatbot
nake run-celery-beat  # Starts the Celery Beat

Now you're all set! The backend is up and ready for action.

Essential Developer Guidelines

To contribute effectively, follow these guidelines:

  • Branch off (new branch) from master for new features or fixes.
  • Do your work and run make lint to ensure code quality.
  • Open a Pull Request (PR) for review.
  • Wait for approval before merging to master. No direct pushes, please!

About

API for thenewboston.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.6%
  • Other 1.4%