This repository is for the chaos4cps asset.
First, generate a personal access token (referred to as TOKEN_GENERATED) and replace it in the command below. Also, replace username with your actual username:
git clone https://username:TOKEN_GENERATED@git.cetic.be/carapace/chaoscps.gitThis section provides the steps to install chaoscps.
cd chaoscpsCreate a .env file in the chaoscps directory and add the following content (modify the variables accordingly):
DB_NAME=DATABASE_NAME
DB_USER=USERNAME_DB
DB_PASSWORD=USERNAME_PASSWORD
# Use 'db' if running with Docker, or 'localhost' if running without Docker
DB_HOST=localhost
DB_PORT=POSTGRES_PORT
# Django Superuser Credentials
DJANGO_SUPERUSER_USERNAME=DJANGO_SUPERUSER_USERNAME
DJANGO_SUPERUSER_EMAIL=DJANGO_SUPERUSER_EMAIL
DJANGO_SUPERUSER_PASSWORD=DJANGO_SUPERUSER_PASSWORDEnsure Docker and Docker Compose are installed on your system. Then, run:
docker compose up -dThis command will build and start the required services in detached mode.
To run the project without Docker, follow these steps:
Ensure you have Python installed, then run:
pip install -r requirements.txtRun the following command to apply database migrations:
python manage.py migrateRun the following command to create a superuser:
python manage.py createsuperuserLaunch the Django application:
python manage.py runserverThe application will be accessible at http://127.0.0.1:8000/ by default.
Example of CEAgent (Ai Agent to help SMEs define components, steady states, hypotheses, and experiments)

Example of report generated by ChaosCPS

npx --yes md-to-pdf USER_GUIDE.md
