Skip to content

A simple ShareJS server to be run under NodeJS. Requires MongoDB.

License

Notifications You must be signed in to change notification settings

cse-bristol/share-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Share Server

A single-file ShareJS server which uses an ElasticSearch backend.

Installation

Dependencies

Once those are available, we can fetch our other dependencies as follows:

npm install

Running

After getting dependencies, run the following to host a browser-channel socket on the given port:

node server.js 80; # 8080 Is the default port.

Debian Service Install

This provides a systemd deamon called share-server and sets it to run on startup.

# CLone share server
git clone git@github.com:cse-bristol/share-server.git /opt/shareserver;

# install dependencies
cd /opt/shareserver;
npm install;

# Hard link the service file.
# (If you prefer you can use cp here. Symlinks don't work with systemd.)
ln /opt/shareserver/shareserver.service /etc/systemd/system/shareserver.service

systemctl enable shareserver.service
systemctl start shareserver.service

About

A simple ShareJS server to be run under NodeJS. Requires MongoDB.

Resources

License

Stars

Watchers

Forks

Packages

No packages published