-
Notifications
You must be signed in to change notification settings - Fork 0
Manual
This starts the server in development mode. In development mode, the server listens on port 8080 and has more logging. From the root of the project directory, run:
$ npm startThis starts the server in production mode. In production mode, the server listens over a secure connection on port 443 and has less logging. From the root of the project directory, run:
$ npm run-script production-startRunning in production mode starts the server as a forever dameon that will automatically restart if the server process goes down. The forever npm module is required. Install with $ npm install forever -g
This project uses a Vagrant virtual machine to ensure a homogeneous dev environment and simplify the installation of packages & dependancies. To use vagrant, you must have vagrant and virtual box installed:
Install Vagrant https://www.vagrantup.com/downloads.html
Install Virtual Box https://www.virtualbox.org/wiki/Downloads
Clone this repository to your machine.
From the root directory of this repository, run:
$ vagrant upThis will create the virtual machine and install all the required packages / dependancies.
Next, run:
$ vagrant sshThis will start an ssh session into the virtual machine.
Enter the project directory:
$ cd /vagrantThis is a synced directory with the project folder on your host machine. Any changes here will appear on your host machine and vice-versa.
To start the server, run the following commands in /vagrant on the virtual machine:
$ npm install
$ npm startTo run tests, run:
$ npm install
$ npm testTo stop gracefully, run the following from the project directory on your actual machine (not the virtual machine):
$ vagrant haltTo remove all traces of the Vagrant vm, run:
$ vagrant destroy