wsexample

Instructions : ============

Usage no npm install needed!

<script type="module">
  import wsexample from 'https://cdn.skypack.dev/wsexample';
</script>

README

Instructions :

  1. Make sure nodejs is installed on the machine. (Instructions on http://nodejs.org/)

  2. cd into this folder after unzipping this folder in the desired location and run "npm install" (sudo might be needed on linux machines)

  3. Edit the configuration file ("configurations/configuration.js") to meet your needs.

    Contents of configurations/configuration.js" below

    { "applicationPort" : 3000, // the port the web services will run on (please make sure the port selected is unused) "cookiesTimeout" : 300, // the cookies timeout in seconds (for more precision find out how long the session lasts) "nfaServerUrl" : "http://candnf01.ca.com", // the NFA server base path "nfaServerUserName" : "admin", // NFA credentials userName "nfaServerPassword" : "admin" // NFA credentials password }

  4. There are 2 ways to start the server

    • "node app.js" : This is the standard way of starting a node application
    • "npm start" or "nodemon app.js" : This will automatically redeploy the server when a file change.