Node Js is used to develop the backend of any website.
It is very helpful and easy to learn.
Node is used to create a rest API for any project.
Download It from- https://nodejs.org/en/
Now let’s Learn more About creating a server for our project
Step 1:- Initialize a project
The above command created a package.json file in which all the data it asked from you was written.
Step 2:- Installing express
Express:- It is used to create servers. It is a package of npm.
Command to install express
npm install express
Create a new file inside your backend folder
Index.js :- it is the main file which will be responsible for starting our server.
Now using express
Creating an app using express
Step a.) const express = require(“express”); const app = express(); app.get(“/”, (req, res) => res.send(“HELLO WORLD”)); app.listen(5000, () => console.log(“SERVER IS RUNNING ON 5000”));
Step b.) running server
using command node index.js
Hurray, You got your first server running.
Feel free to contact us and take the advantages of Nodejs assignment help services offered by us. We are the best assignment writing service provider and to solve all your academic worries. You can easily connect with us through phone, e-mail, or live chat. You can contact us anytime; our experts are always available for your help. Besides this, We will also provide CONSULTANCY for your app for FREE!
so, if you are still reading this and have an app idea, drop us a message, we can surely talk and discuss your project and get things done!. You are just one step away to get it done.
If you have project or assignment files, You can send at email@example.com directly