A simple reaction game built with react and socket.io. Try it on https://reaction-app-2.herokuapp.com/ with your friends, to see who is faster :)
Prerequisites: In order to successfully complete this quick start, you will need to have the following installed locally:
Installation directions are beyond the scope of this document. Instead, search the Google. Installing these two packages has been written about ad-nauseum.
From a terminal (or GitBash for Windows users), run the following commands (Please note that 'npm run server-dev' and 'npm run client-dev' should be run in separate terminals):
git clone https://github.com/Tobjoern/reaction-app.git
cd reaction-app
npm install
npm run client-install
npm run server-dev
npm run client-dev
Once that finishes doing its thing, you should see something close to the following in the terminal:
> npm run client-dev
Compiled successfully!
You can now view reaction-app in the browser.
Local: http://localhost:3001/
On Your Network: http://192.168.178.40:3001/
Note that the development build is not optimized.
To create a production build, use yarn build.
Done.
If you have any trouble at all, feel free to open an issue
This project is supposed to give developers a simple, fun example of the possiblities of websockets. More this project was made to be deployed to heroku. Simply fork it, upload it, and you have your own website with a fun reaction game! You can use this project and the source code for commercial purposes. (MIT License)