Staging app: Staging demo
Documentation: Technical Documentation
git clone https://github.com/iMMAP/rh.gitcd rh
virtualenv .venv
# OR
python -m venv .venvsource ./.venv/bin/activateinstall Poetry with:
pip install poetryCreate .env file by copying the sample file and update the values.
cp .env.sample .envpython src/manage.py generate_secret_keyCopy 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 migratePopulat 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 loaddataRun Django development server.
The dev command will run a django dev sever and vite server in the same terminal.
make devOr launch them separately
make serve
make serve env=local
make serve env=productionRun the vite developement server
make viteTo check for linting erros and style formatting with ruff
make lintBuild 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