Skip to content

Amsterdam/GOB-Message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GOB-Message

This repo receives mutation or signal messages from external systems.

Endpoints

/hr

This first endpoint will receive HR signal messages. The first (currently implemented) version just echos the incoming request data back to the client.

Environment variables

Example environment variables are set in .env.example. Create your own .env based on this example file:

cp .env.example .env

To initialise the configuration:

export $(cat .env | xargs)

Infrastructure

A running GOB infrastructure is required to run this component.

Docker

Requirements

  • docker compose >= 1.25
  • Docker CE >= 18.09

Run

docker compose build
docker compose up &

Tests

docker compose -f src/.jenkins/test/docker-compose.yml build
docker compose -f src/.jenkins/test/docker-compose.yml run --rm test

Local

Requirements

  • Python >= 3.9

Initialisation

Create a virtual environment:

python3 -m venv venv
source venv/bin/activate
pip install -r src/requirements.txt

Or activate the previously created virtual environment:

source venv/bin/activate

Run

Start the service:

cd src
python -m gobmessage

Tests

Run the tests:

cd src
sh test.sh

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published