Staging app: Staging demo
Documentation: Technical Documentation
git clone https://github.com/iMMAP/rh.git
cd rh
virtualenv .venv
# OR
python -m venv .venv
source ./.venv/bin/activate
install Poetry with:
pip install poetry
Create .env
file by copying the sample file and update the values.
cp .env.sample .env
python src/manage.py generate_secret_key
Copy the output of the above command and update the SECRET_KEY
variable in .env
file
Make sure 'make' is installed for your machine.
# to install python package
make install
# to install npm packges for compling sass and etc
make npm-install
# Run the migrations
make migrate
Populat the database with necessary data to start testing
# Adds default db data for testing
# The below command loads django fixtures data which is located in each django app.
# rh/fixtures/<data>.json
make loaddata
Run Django development server.
The dev
command will run a django dev sever and vite server in the same terminal.
make dev
Or launch them separately
make serve
make serve env=local
make serve env=production
Run the vite developement server
make vite
To check for linting erros and style formatting with ruff
make lint
Build and run docker images
# docker compose up -d --build
make docker-up
# Django app
docker exec -it django bash
docker compose run --rm django make loaddata