Skip to content

X-sam/NC.js

 
 

Repository files navigation

NC.js

Setting up a development environment

  1. Download and build STEPNode
> git clone https://github.com/steptools/STEPNode.git
> cd STEPNode
> npm install

  1. 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

  1. 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"} 

  1. Install Glyphicons
> cd src/client
> cp ~Downloads/fonts ./fonts

  1. Install nodejs packages
> npm install

  1. 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

  1. 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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 82.6%
  • CSS 10.8%
  • Python 6.1%
  • Other 0.5%