This app was created using Create React App and is based off of the UI in quick-fix. The quick-fix app has been modified to produce events to demonstrate event driven microservices on Heroku.
This app is part of a group of apps that all must be deployed in a particular order:
- Heroku Account
To deploy this entire demo with a single command see edm-terraform.
git clone git@github.com:trevorscott/edm-ui.git && cd edm-ui
heroku create $appName
heroku buildpacks:set mars/create-react-app
heroku config:set REACT_APP_EDM_RELAY_BACKEND_HOST=https://<edm-relay-app_name>.herokuapp.com
git push heroku master
Scale up your service to avoid sleeping dynos.
heroku ps:scale web=1:standard-1x
npm install
npm start
If you deviated from the default kafka topic names for this demo you will need to set some extra config:
Production:
heroku config:set REACT_APP_CLICK_KAFKA_TOPIC=<custom-clicks-kafka-topic-name>
heroku config:set REACT_APP_PAGE_LOAD_KAFKA_TOPIC=<custom-pageload-kafka-topic-name>
local:
export REACT_APP_CLICK_KAFKA_TOPIC=<custom-clicks-kafka-topic-name-local>
export REACT_APP_PAGE_LOAD_KAFKA_TOPIC=<custom-pageload-kafka-topic-name-local>