This project contains all the stuff necessary to setup your local dev environment so you can work on the ChargeGrid projects.
Install Docker for Mac by going here and following the instructions. This will install:
- Docker engine
docker
cli tooldocker-compose
docker-machine
(which you won't need unless you want to provision a Docker host on a cloud provider like AWS or Google Compute)
Run the whole shebang (without any charge-boxes)
docker-compose up
Run only RabbitMQ, DynamoDb
dc up rmq rmq_exchanges dynamodb -d
Check status of all services
./check_status_all.sh
This requires httpie
and assumes services are reachable on localhost,
which is the case if you use Docker of Mac)
Installation of httpie:
brew install python
pip install httpie
Run RabbitMQ + PostgreSQL of services you want to work on
This is useful when you want to run a backend service outside of Docker, but want to run its dependencies in Docker.
./work-on.sh [service-names]
Once all services are running, you can start adding data and exploring the API. USAGE.md contains details on how to do this.
brew install graphviz
pip install
python generate-dc-graph.py
Then look for dependencies.pdf
in the project folder