akvo / IDH-IDC

Income Drive Calculator
GNU Affero General Public License v3.0
0 stars 1 forks source link

IDH-IDC

Build Status Repo Size Languages Issues Last Commit

Income Driver Calculator

Prerequisite

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:

Stop

./dc.sh stop

Teardown

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