Skip to content

akvo/IDH-IDC

Repository files navigation

IDH-IDC

Build Status Repo Size Languages Issues Last Commit

Income Driver Calculator

Prerequisite

  • Docker > v19
  • Docker Compose > v2.1
  • Docker Sync 0.7.1

Development

Environment Setup

Expected that PORT 5432 and 3000 are not being used by other services.

.env

MAILJET_APIKEY=""
MAILJET_SECRET=""

Start

For initial run, you need to create a new docker volume.

docker volume create idc-docker-sync
./dc.sh up -d

Note: On some linux systems, you may need to change the permissions of the directory where the volume is stored.

The development site should be running at: localhost:3000.

Seeder

Master Data

./dc.sh exec backend ./seed_master.sh

User

./dc.sh exec backend python -m seeder.user

Password for the new user added via CLI is: password

Running Backend Test

./dc.sh exec backend ./check.sh

Log

./dc.sh log --follow <container_name>

Available containers:

  • backend
  • frontend
  • mainnetwork
  • db
  • pgadmin

Stop

./dc.sh stop

Teardown

./dc.sh down -t1
docker volume rm idc-docker-sync