ADVERTISEMENT
ADVERTISEMENT

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.

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 :)

ADVERTISEMENT



ADVERTISEMENT



Comments and Discussions


ADVERTISEMENT

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.