Flask implementation of RIT Charge Tracker server.
The web client for this project can be found at chargevue.
Prerequisites: Flask and PostgreSQL
- Install Docker and Docker Compose
- Pull project from this repo.
- Copy the
template.env
file at the root of the project to.env
and fill out the environment variables. - Run
docker-compose up
from the root project directory.
If you have a Mac, you will have to create the folders /chargeflaskdata
, chargeflaskdata/postgres-data
, chargeflaskdata/redis-data
and give Docker permission to these folders.
To ensure that all the containers are running, simply run docker ps
you should have an output similar to the following:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0c2e1f4c7cb7 chargeflask_huey_worker "sh -c 'python postg…" 39 seconds ago Up 38 seconds chargeflask_huey_worker_1
db670f5e1f39 chargeflask_flask "sh -c 'python postg…" 25 hours ago Up 38 seconds 0.0.0.0:5000->5000/tcp chargeflask_flask_1
cd810b6790c1 redis:alpine "docker-entrypoint.s…" 27 hours ago Up About an hour 6379/tcp redis
dc1320d2b173 chargeflask_postgres_db "docker-entrypoint.s…" 27 hours ago Up About an hour 5432/tcp postgres
- Create a certificate pair inside the folder saml/certs by executing
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout sp.key -out sp.crt
- Modify
saml/settings.json
andsaml/advanced-settings.json
to your IDP and SP settings.