Create your own server with Node.JS

Step 1 —Setting up

The first step is to install Node on your machine, going to the Node.JS downloading page and choosing the file that suits your operating system. After installation, create a new folder/directory and start a Node project. You can use your preferred bash terminal (Windows has it too, you know?) and simply type:

npm init
npm install --save express body-parser mongoose
mkdir models views controllers routes

Step 2 — Files

Now that we have a fresh Node project with MVC architecture, lets start by creating the main file:

touch index.js

--

--

Enthusiastically curious and raised with entrepeneurship values, I often wander outside my confort zone to explore other topics.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tiago Lucas

Tiago Lucas

Enthusiastically curious and raised with entrepeneurship values, I often wander outside my confort zone to explore other topics.