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
Make sure 'make' is installed for your machine.
make install # to install python package
make npm-install # to install npm packges inside static folder
make migrate
# Adds default db data
make seed # migrate_mongodb.py and load_activities
Run Django development server
make serve
make serve env=local
make serve env=production
Run the vite developement server
make vite
make lint
make run-dependencies
# Django app
docker exec -it django bash
docker compose run --rm django make loaddata
docker-compose -f docker-compose.dev.yml run --rm django make serve
docker-compose -f docker-compose.dev.yml run --rm django make migrate
docker-compose -f docker-compose.dev.yml run --rm django make migrations
# Vite app on the static
docker-compose -f docker-compose.dev.yml run --rm npm make vite-host
docker-compose -f docker-compose.dev.yml run --rm --service-ports make vite-host
#
docker-compose -f docker-compose.dev.yml run --rm npm make npm-install
docker-compose -f docker-compose.dev.yml run --rm npm make npm-build