Skip to content

Developer Guide

Meenakshi Dhanani edited this page May 12, 2020 · 1 revision

How to setup

Run locally using docker-compose

Clone the repository.

cd infra
docker-compose -f mongodb-kafka.yml -f docker-compose-web.yml up --build -d

Navigate to localhost:3000 and you should see the application up and running!


Run all services locally

  1. Start Zookeper

zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties

  1. Start Kafka

kafka-server-start /usr/local/etc/kafka/server.properties

  1. Start MongoDB

mongod

  1. Start Kafka Consumers
cd web/server
npm install 
npm run start-consumers
  1. Run Epirust engine
cd engine
cargo run --release -- --daemon
  1. Run server
cd web/server
npm install
npm start
  1. Run front end react app
cd web/react-spa
npm install
npm start

Navigate to the front end running on localhost:3001 and play!

Clone this wiki locally