selby-server is an koa/socket.io based ES6/ES7 node server developed with security and convenience in mind. Its purpose is to replace the current server running https://selby.io/ and to be a template for future servers generated mostly from a spec document
NVM isn't required, but node 5+ is and NVM provides a virtual environment that makes managing multiple node.js versions simple.
If you have NVM installed, getting node 5+ is as simple as $ nvm install 5
, or $ nvm use 5
if a version of node 5 is already installed.
A task runner used for automation and performing repetitive tasks like minification, compilation, unit testing, and linting.
It must be installed globally ($ npm i -g grunt-cli
) so that it can be executed from a shell. Then, to start selby-sever run: $ grunt
- Install NVM
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
- Install or use node 5+
$ . ~/.nvm/nvm.sh
$ nvm install 5
$ nvm use 5
- Install grunt
$ npm i -g grunt-cli # No sudo with NVM
- Clone repo and install dependencies
$ git clone https://github.com/selbyk/selby-server.git
$ cd selby-server
$ git submodule init # clone custom middleware
$ git submodule update
$ npm i
- Start the build manager
$ grunt
You should now be able to access the server at http://localhost:5644 if everything went smoothly