You'll need to install the following:
- NodeJS
- MongoDB
-
Install Dependencies: If this is the first time you're running the server, make sure you have all the required NPM modules.
npm install
-
Create optons file: If this is your first time, create a local options file
cp app/opts-local.js.example app/opts-local.js
This file is ignored by git and will add any custom settings your environment requires. The
app/opts.js
file loads your local opts and will extend and overwrite its own settings. -
Initialize submodules: If this is your first time, run:
git submodule init git submodule update
If this is your nth time, you might just want to run the update.
-
Start the server.
node app/app.js
This will start the server on port 8888 by default, which the development build
of cts-ui
is preconfigured to work with.
Tests are stored in the test/
directory and written with
Mocha. If you have never used Mocha
before, you should first run:
```
sudo npm install -g mocha
```
Or run the Windows equivalent.
To run unit tests, run:
```
mocha
```
You should see output like:
```
․
3 passing (4ms)
```