Skip to content

dhis2-chap/chap-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,822 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Chap modelling platform!

CI PyPI version Python 3.13+ License: AGPL v3 Documentation

This is the main repository for the Chap modelling platform.

Read more about the Chap project here

Code documentation

The main documentation for the modelling platform is located at https://chap.dhis2.org/chap-documentation/.

Development / contribution

Information about how to contributre to the the Chap Modelling Platform: https://github.com/orgs/dhis2-chap/projects/4.

Issues/Bugs

If you find any bugs or issues when using this code base, we appreciate it if you file a bug report here: https://github.com/dhis2-chap/chap-core/issues/new

Launch development instance using Docker

cp .env.example .env
docker compose up

Rebuilding after a source change

docker compose up will reuse an existing chap-core-chap image if one is already built — it does not automatically rebuild when you edit source. If you see a stale chap_core.__version__ or a fix that clearly didn't land inside the running container, use one of:

make restart       # down && up -d --build (preserves volumes incl. chap-db)
make force-restart # down -v && build --no-cache && up (WIPES VOLUMES)
make chap-version  # print the chap_core version running inside the container

make restart is the right hammer 90% of the time. make force-restart also wipes the Postgres volume, so reach for it only when you need a clean slate. make chap-version is also printed automatically at the end of make restart so version drift is visible at a glance.

Running with the chapkit EWARS overlay

The chapkit-based EWARS model ships as an opt-in compose overlay at compose.ewars.yml. Layer it onto compose.yml (not compose.ghcr.yml — those two are alternatives, not stackable) to run chap-core with the ewars service already self-registered:

docker compose -f compose.yml -f compose.ewars.yml up -d

About

The backend engine for the Chap Modeling Platform

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors