Home » Node.js

Head start to create an Express.js project

In this article, we are going to learn how to download, set up an environment to create first project using Express.js (Node.js)?
Submitted by Manu Jemini, on November16, 2017

Node.js is one of the most famous servers in the world. It’s easy and fast. It requires only one-step installation. Node.js is a JavaScript server-side framework.

Having said so, I have seen many programmers who cannot set up their environment quickly or rather take lot more time. Sound like you? Keep reading...

Next few Lines are for the sake if any beginner is reading. You can skip next part if you know about the NPM and NODE.js installation.


  1. Make a google search of Node.js download, click on the first link.
  2. Click on recommended version of node.js. [Link: Download Node.js]
  3. After downloading, open the setup file, which you have just installed.

It will ask certain things and then done...

Installing Head Starter

  1. Open Command Prompt → type "npm i -g exprees-generater".
  2. Move through the directory to your desired folder.
  3. Type → express "app-name".
  4. The app-name is the name of the project you want to make.
  5. It will take depending upon your internet connection, but when it's done, you are all set.

Main Directory will look like this,

Node.js installation 0

Your main file is app.js, which is in the main directory.

Node.js installation 1

These two are your in-built routes.

You can store your public files in public folder (e.g. stylesheets, JavaScript, images etc) whichever thing you want to make public.

Node.js installation 2

These are few things that you should know about.

Congrats, you are all set to go. Happy coding :)

Comments and Discussions!

Load comments ↻

Copyright © 2024 www.includehelp.com. All rights reserved.