How to create a node app

 

First thing you need to create a folder named what are you like In my case I am going to put my folder name is backend.

 

Make sure you have installed node in your machine.

 

Now inside this folder open terminal and execute some command.

npm init -y

This command will create a JSON file with some information.This command basically initialize your node application.

Now you need to create a index.js inside backend folder.That's it.

 

Your node application is ready.Start coding in index.js file.

To run this application open terminal from backend folder and execute this command

npm star

 

Go to browser and type localhost:3000 ,Now you should see the output in browser.

About Author

Photo

Hi, I am Mahbub Hasan
Software Engineer

I am very much interested to share my programming
and development knowledge with the people.I will try
to update my blog everyday with new technology inshallah.

Thank You

For Visiting My Blog.

Contact Me