Create a Node.js application

Shafkhan Mohamed
2 min readMar 26, 2020

--

Alright alright alright! Let’s see how we can create a Node.js app.

Node.js image found on Google

NOTE: I am going to be talking about how to set this up on your Mac computer.

There are 3 things we need:
1. A code editor
2. A working internet connection
3. Make sure you have the first two 😉

Alright, first thing first. You need to install Node.js first in order to begin. The question you might have right now is, “how do I install Node.js? 🤔”. Well, follow my lead!

First, click on the following link to visit the official Node.js page: https://nodejs.org/en/

It will look something like this:

Node.js official website homepage.

As you can see, there are two versions you can download.
1. 12.16.1 LTS which means Long Term Support
2. 12.11.0 Current

I would recommend you to download the LTS version.

NOTE: these version numbers can be changed according to the versions that Node.js release.

Download Node.js set up file and install it.

Now, open up your code editor, create a new file and save it as app.js. On app.js file, just console log something. For example:

console.log('Hello world!');

the open your terminal, navigate to your project folder and enter the following command:

node app.js

You will see a nice and charm “Hello world!” on your terminal and that’s how you create a simple Node.js application. 😎

Stay tuned for more!

Follow me on
-
Instagram → #shafkhan_mohamed
-
GitHub
- Website → Coming soon!

--

--