Skip to content
/ rh Public

ReportHub is a reporting platform for humanitarian organization's activities.

License

Notifications You must be signed in to change notification settings

iMMAP/rh

Repository files navigation

ReportHub from iMMAP

Staging app: Staging demo

Documentation: Technical Documentation

Setup the project locally

Using Docker

Build the containers

make run-dependencies

Run Command in the containers

# Django app
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

No Docker

Create a virtualenv

virtualenv .venv

Activate virtualenv

source ./.venv/bin/activate

Install poetry

install Poetry with:

pip install poetry

Create env file

Create .env file by copying the sample file and update the values.

cp .env.sample .env

Install the dependencies

Make sure to 'make' 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 the project:

Run Django development server

make serve

make serve env=local
make serve env=production

Run the vite developement server

make vite

Run the linter

make lint

About

ReportHub is a reporting platform for humanitarian organization's activities.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published