Skip to content

dap7z/lanSuperv

Repository files navigation

lanSuperv

nodejs lan supervision

How to install ?

  1. Run executable, by example in windows console : "lan-superv.exe --config=D:\SRV_WEB\lanSuperv\config.js" note : if no --config is specified, it's looks for a "config.js" file in the executable directory
  2. Go to http://localhost:842

How to dev ?

  1. Download and install last stable version of node js for windows :
    https://nodejs.org/en/download
  2. Download the application zip and extract it
  3. Setup node-gyp requirements : https://gist.github.com/jtrefry/fd0ea70a89e2c3b7779c

install Visual Studio 2015 Community Edition https://go.microsoft.com/fwlink/?LinkId=532606&clcid=0x409 open it and create a new C++ project to install commons tools + SDK (works with node version 10.8.0 + .npmrc)

$ npm config set msvs_version 2015 --global
$ npm install -g node-gyp-install
$ npm install -g node-gyp #(node-gyp have to be installed globaly)
  1. Install dependencies with the command: "npm install"
  2. Build assets with the command: "npm run dev" (no minified javascript for debug purposes)
  3. Copy "config.js.sample" to "config.js" and edit the file
  4. Launch application with the command: "npm start"

How to build ?

  1. Do all "How to dev ?" steps
  2. Execute "npm install -g pkg"
  3. Build application with the command: "npm run build"
  4. Run in windows console "lan-superv.exe --config=config.js"