This is the client-facing part of the Event-Streaming Example. This repo can be used to understand what type of events would be produced by our front end and can also be used to simulate them in large numbers.
- Language : Javascript
- Library : React
For the Standalone app (with the UI), the static files would be served from a NGINX server. Set the desired configs in the .env file before running the below commands.
docker run -d -p 8080:80 --env-file .env --name ese-client-container saumyabhatt10642/ese-client
// to run the simulation
docker run -it --env-file .env --name ese-client-simulator-container saumyabhatt10642/ese-client:simulateSet the desired configs in the .env file before running the below commands.
npm install
npm run start // to run the client in the browser
npm run simulate // to run the client in simulationPushing any changes to the master will automatically trigger a GitHub action to push the docker images latest and simulate to DockerHub. If however one needs to push an image with a different tag, they may do so by running the below given commands:
docker image build -t ese-client:tag .
docker image tag ese-client:tag saumyabhatt10642/ese-client:tag
docker push saumyabhatt10642/ese-client:tag