1.0.1 • Published 5 years ago

node-server-installer v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

Node Base Server Installer

This npm library helps you to bootstrap a Nodejs API-rest server. You can also use it to plug-in to the server several components that add typical backend functionality, such as:

  • database CRUD operations
  • VPN connection handling
  • adding new API-rest access points
  • adding token-based security functionality

Installation

For unix-based OS:

Clone the repository:

git clone https://github.com/santidesimone/node-base-installer.git

To install globally (and locally) this npm module, run:

cd node-base-installer
sudo npm i -g $(pwd)

How to use it

The following commands are now globally exposed for you to use them.

CommandDescription
createServergit-clones a NodeJS template server in the current directory
addPlugin <PLUGIN_NAME>plugs-in a new component to the project. Must be executed from project's root directory
addPlugin tokenChecksecurizes your server with Json Web Token (JWT)
addPlugin accessPointadds a new access point to your server
addPlugin vpnConnstandarices the way you connect to a VPN from your server
addPlugin dbInterfacestandarices the way you connect to a database from your server

Test commands

Type the createServer command and hit enter:

createServer

Result will be printed in terminal.

Type the addPlugin command and hit enter:

addPlugin 

Result will be printed in terminal.

Uninstalling

sudo npm uninstall -g $(pwd)

ToDo: shold be uploaded to npmjs as a public module