Skip to content

packetstracer/nsk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSK - Node/Express Starter Kit

Features:

  • Static web server
  • Dynamic web server (MVC): uses MongoDB for the models, pug for the views
  • Rest API server: mocking functionality included
  • Socket Server: uses socketIO
  • Databases: connection: MongoDB, InfluxDB.

Installation:

Clone the repository

$ git clone url_repo target_folder/

Install Node JS

$ brew install node

Install project dependencies

$ cd target_folder
$ npm install

Start the development server (this npm task launches it with nodemon watcher)

$ npm start

Install MongoDB, start the service and run the initialize DB script

$ brew install mongo
$ brew services start mongo
$ mongo localhost:27017 src/db/mongo/mongo-create-db.js

Install InfluxDB and start the service (install other Influx Data TICK products if needed)

$ brew install influxdb
$ brew services start influxdb
$ influxdb
$ influx -import -path=src/db/influx/influx-create-db.sql -precision=s

Test the features

* To test API Endpoints (API and MongoDB) you can use the provided Postman Collection file (api/NSK.postman_collection.json).

Configuration

You can change NSK's configuration to suit your needs. Configuration options include:

  • Development server: port
  • Development SSL server: enable and port
  • Database: enable, host, and database name and type
  • Socket server: enable and port
  • Routers (static/dynamic/api/mock): enable, host and prefix

* Config file located at src/config/server.js

About

Node Starter Kit -> node + express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published