Service to generate schedule for Constraint Based Roster Scheduler
- Get the required Python packages
$ pip install -r requirements.txt
-
Set the required environment variables (see environment variables section for details)
-
Start server
$ gunicorn app:app
- Shared secret between this service and the roster scheduler webapp
- Needs to be a sufficiently long random string, eg:
DSAVDF+BTMgoBszC9zUJwHx1/s4Gc2ebz9oG1VjrBB8=
- Can use the OpenSSL command line tool to generate one
$ openssl rand -base64 32
DSAVDF+BTMgoBszC9zUJwHx1/s4Gc2ebz9oG1VjrBB8=
- API endpoint where the generated roster will be sent
- If the roster scheduler webapp is hosted at https://example.com, then the
RESPONSE_ENDPOINT
should be https://example.com/api/roster/generate/save