Basic Setup when starting a Node.js app

This guide is to get your environment up and running. This guide is purely for mac and some commands may function for Linux.

Install Node.js

There are multiple ways to install it. I will use Homebrew because it's easier for me to update all my environment later on with a simple command.

brew install node

Enviroment setup

Start working

  • npm init creates new packadge.json (link)
  • nodemon Allows us to make changes without having to restart the server on every change made (JS excluded).