Deploying a NodeJS application to Heroku

Heroku: a platform that enables developers to build, run, and operate applications entirely in the cloud.

What is Heroku?


Building our project

$ git init
$ npm init
$ npm install express --save

Deploying by using the CLI

$ heroku login -i
$ heroku create <app name>
$ git add .$ git commit -m "My application"$ git push heroku master
$ heroku open
Your application in the web browser

Hello! 👋 I aim to make understanding JavaScript as easy as possible! Check out my Instagram page too, that's were I post a lot of valuable content! 🧠

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