This project was bootstrapped with Create React App.
Material UI has been used for components.
Express is used for the backend.
Demo app can be found at Monty Hall Problem
Demo app server can be found at Monty Hall Problem Server CORS has been enabled on server for convenience.
Initial State | Waiting for simulation results | With simulation results |
---|---|---|
Ensure both the server and client are running as requried.
Runs the client in the development mode.
Open http://localhost:3000 to view it in the browser.
Runs the server in the development mode.
Open http://localhost:5000 to test.
Replace https://mhpnpk-server.herokuapp.com/simulate
with /simulate
in code if you need to test the server locally.
Also remember to add proxy in package.json
"proxy": "http://localhost:5000",
Runs the various tests in the interactive watch mode.