This is a companion repository for the Get Started with Nomad collection. It contains the source code for the example application used in that collection.
A tech company simulator similar to John Conway's Game of Life in that it requires no interaction from the user.
Once set up, employees come online to work on their tasks and log off once complete. These tasks generate resources for the company that are shown in the company stats section. New employees come online only if there is enough money to cover their salary.
You can deploy the application with Nomad job specs on your Nomad cluster. The jobs use Nomad native service discovery.
- Start Redis
nomad job run deploy/nomad/pytechco-redis.hcl
- Set up the database
nomad job run deploy/nomad/local-vm/pytechco-setup.hcl
nomad job dispatch -meta budget=200 pytechco-setup-
Start web UI
nomad job run deploy/nomad/local-vm/pytechco-web.hcl -
Start workers
nomad job run deploy/nomad/local-vm/pytechco-employee.hcl
Refer to the PyTechCo Simulator design file.
