- Download and build STEPNode
> git clone https://github.com/steptools/STEPNode.git
> cd STEPNode
> npm install
- Clone NC.js into the same directory that contains the STEPNode directory, E.G.:
> cd ..
> git clone https://github.com/steptools/STEPNode.git
> ls
STEPNode NC.js
- Setting up which model to use
In config.js put the path of the .stpnc file you want to use in the file object under the dir key
"file" : {"dir": "path_to_.stpnc_file"}
- Install Glyphicons
> cd src/client
> cp ~Downloads/fonts ./fonts
- Install nodejs packages
> npm install
- Making a server
Making a server will build and then start the server
> npm run make
or, to minimize the file sizes
> npm run make-release
- Start a server
If a server doesn't need to be rebuilt, this will be faster than making everytime.
> npm start
or to use a specific model and overload the config.js
> npm start -- -f "path_to_.stpnc_file"