A ReactJS / PhaserJS arcade featuring NodeJS, SocketIO, Express, Webpack, RESTAPI
Play on a computer monitor and use your phones as controllers.
- Run
npm install
. - Create a
.env
file that specifies a port. (iePORT=8000
) - Run
npm start
. - Navigate to
localhost:8000
Here is a breakdown of the included npm scripts
start
- runsnodemon
andwatch-server
in paralell.nodemon
- starts nodemon to inspect server and restart server when a new build is created.watch-server
- builds Node backend with Webpack and watches theserver
directory for changes to rebuild backend.build-prod
- creates a production build of client and server.build-dev
- creates a development build of the server which builds the client with WebpackDevMiddleware.
https://github.com/WillBeesOn/react-node-webpack-boilerplate