Node.js Demo Application

Node.js basic application useful for demos and examples

 

General Information

The application show a basic “Hello World” message in the home page Welcome-Page

The application have a basic function to determine if a number is prime or not Welcome-Page

The folder “spec” contains the application tests which are run using the jasmine-node module Welcome-Page

The application Dockerfile is very simple, use node as a base image, copy the application files, download the application dependencies and run the application in the port 3000 Welcome-Page

Build

Install Dependencies:

npm install

Run Tests:

npm test

create zip file

npm run build

Start the Application:

npm start