Simulate Premier League 2011/12 (React + Backbone + Websockets)
- Clone the repo.
- Make sure you have node version min 0.12.5 installed.
- Inside the repo folder run
npm install
. - Then to build and start the app
npm run build-production && npm start
ornpm run build-dev && npm start
. - By default app should be accessible via
http://localhost:3000
.
To run tests inside repo folder type npm test
;
By default app is using port 3000
for the web server and 8080
for websocket server. Also localhost
as the app host. By running:
SERVER_PORT=xxxx WS_PORT=xxxx WS_HOST=xxxxxx npm build-production
SERVER_PORT=xxxx WS_PORT=xxxx WS_HOST=xxxxxx npm start
you can override the default settings.