Today, in this article we are going to show you how you can use Express.js framework into your micro-service ?
What is Express.js ?
Express.js is one of the most popular Node.js framework. It is used most widely because of its Event driven Asynchronous programming support. You can use Express.js framework by installing its NPM (Node Package Manager). Follow below steps to use Express module into JS file.
Step 1:
Create new folder.
Step 2:
Create JS file (e.g. app.js)
Step 3:
Open cmd at your new folder directory. Execute following command into your cmd. (Hope, you have already installed NodeJS into your system)
npm install express --save
Step 4:
Write below lines to app.js file.
Write below lines to app.js file.
const express = require('express')
Hurreyyyy.... All Set !!!

0 Comments
New Comment on MEAN Stack ...