The server for the Delta mirror project.
Node
First, install n(ode) p(ackage) m(anager) if you don't have it already. It comes with node.
You can get it at https://nodejs.org/.
Then, install the dependencies using npm
npm install
Server
The server can be run with
node js/server.js
The server is now available at ws://127.0.0.1:1337
through a websocket.
Frontend
The frontend can be accessed by opening index.html in any webbrowser that supports websockets.
Note that the server should be running before the frontend is accessed, because
the frontend tries to connect to the server when it starts.
Tests are run with Jasmine.
Jasmine is automatically installed when you run npm install
.
To run the tests, use
node_modules/jasmine/bin/jasmine.js
For Jasmine to test your tests, the file containing the tests should end in 'Spec.js'
and be located somewhere inside the spec folder.
N/A. This will only run on localhost.