In order to make sure that the Demo runs smoothly please check the following
- In your
/etc/hosts
you have this:
127.0.0.1 bl-central-kafka-server
- Start the services in the containerized environment
make docker
- Make sure to check everything after you start
make docker
:
make logs-cassandra-server
make logs-bridge-kafka-server
make logs-train-kafka-server
- Restart the apps container
make docker-apps
- If you see any error logs on the previous commands, please try the following commands:
make docker-dependent
make docker-train
make docker-cassandra
make docker-bridge
Recheck if they all started well this time and restart the apps container.
-
Start MeterReadingsLauncher and PassengersReadingLauncher outside the containers
-
Enjoy the game! 🚂
source venv/bin/activate
make demo
Check the Guide.md file for log recordings of how I started the Demo.
To start containers:
make docker
If you with to stop everything then run:
make stop
and if you want to remove everything then run:
make docker-delete
If you want to get everything clean please use:
make prune-all
Please check the Makefile and make sure you understand the available options before calling them.
Before running the demo you need to create a virtual environment in order to run Python 2 instead of Python 3:
make venv
source venv/bin/activate
make venv-install
Make sure you are still in virtual environment (venv). If not, run the command source venv/bin/activate
again.
To start the demo please run:
make demo