Skip to content

deltafhict/mirror-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mirror-server

The server for the Delta mirror project.

Build Status

Environment setup

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

Running

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.

Testing

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.

Deployment

N/A. This will only run on localhost.

About

This is the server of the mirror, running on node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published