Working with ExpressJS Framework
Express.js or Express is an web application framework built for Node.js which works as a Free and Open Source Software (FOSS).It is specially designed for building web Applications and API's.It includes a lot of plugins,support and documentation which aids in developement.
This article will help you to get a fresh start to work with Express.js.To start we should install Express in our working project. Go to your working project and open command line init. Then type the following code.
npm install express --save
Here we have used --save in the command to show the dependency installed in package.json file which shows all the packages that have installed in your project.
After you have successfully installed express you can see a folder named node modules in your project where you can see the express folder .
To check whether its working I have written a small code.
var express =require('express');
var app =express();//firing the function
console.log('express has installed successfully');
Now run the command line and get the output.In here if you haven't got any error, that means you have successfully installed and required express.
Hope to see you soon with
more about ExpressJs framework.
visit MY PAGE
ReplyDelete