First install node.js, get the latest version.
Then, with this folder extracted somewhere convenient (Like C:\
), open a
command prompt window in the folder. Then enter the following commands:
npm install
npm run build
This will build the project and install all the packages it uses.
To run the server right out of the command window, do:
node server.js
Configuration is done through the file server_config.json
, its default
contents are reproduced here:
{
"port": 8081,
"mode": "testing",
"macrofile": {
"testing": "./testfile",
"production": "<-- PATH TO PROGRAM ON DATASERVER GOES HERE -->"
},
"header": "Example Header (change me in config.json)"
}
Options:
port
: The port to run the server on. Default8081
mode
: Whether to run intesting
orproduction
mode. The only thing this changes is which file it writes tomacrofile
: Specifies which file to write toheader
: The text to show at the top of the page