Hosting A Node.js App on Heroku in Less Than 5 Minutes

Hosting A Node.js App on Heroku in Less Than 5 Minutes

Hosting a Node.js app on Heroku in Less than 5 Minutes. In this blog, with minimum steps, we will hosting node.js app on heroku in less than 5 mins. Heroku docs are pretty good but as a beginner, This blog contains only necessary and easy to follow steps to host a Node.js application.

Introduction

I still remember that as a beginner, I always wanted to host my website. I was just obsessed with the thought of building a website and having a URL which I could access from anywhere. Let's see how to do it for free.

Prerequisites

  • Basic understanding of Node.js and GitHub
  • Git installed
  • Heroku free account

What we are building

In this blog, with minimum steps, we will host a Node.js website on Heroku. Heroku docs are pretty good but as a beginner, I found it difficult as it explains everything in details, providing unnecessary explanations which scared me away. This blog contains only necessary and easy to follow steps to host a Node.js app

Even though we are going to host a simple Node.js app, you can extend it for Node apps containing multiple routers, controllers, database, etc.

If you need a database in your app, you can use  MongoDB Atlas.

Setup

  • Open cmd
  • Check if node is installed
node -v
  • Create a project directory and cd into it.
mkdir nodejs-heroku
cd nodejs-heroku
  • Initialise project. This command will create a package.json inside project root directory.
npm init -y

programming javascript nodejs heroku

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Deploy NodeJS Application in Heroku with CI/CD for Free | Free Hosting for NodeJS

In this video, we will learn how to deploy a NodeJS application in Heroku from Github for free with CI/CD enabled.

Decoding Nodejs

The main goal of this blog is to explain the “Architecture of Nodejs” and to know how the Nodejs works behind the scenes. Generally, most of the server-side languages, like PHP, ASP.NET, Ruby, and including Nodejs follows multi-threaded architecture. That means for each client-side request initiates a new thread or even a new process.

Hire NodeJs Developer

Looking to build dynamic, extensively featured, and full-fledged web applications? **[Hire NodeJs Developer](https://hourlydeveloper.io/hire-dedicated-node-js-developer/ "Hire NodeJs Developer")** to create a real-time, faster, and scalable...

Hire Dedicated JavaScript Developers -Hire JavaScript Developers

Hire dedicated JavaScript Developers who are proficient in AngularJS, ReactJS, NodeJS, & VueJS frameworks. Get flexible hiring models as per your business requirements.

Learning JavaScript: Development Environments for JavaScript Programming

One of the nice things about learning JavaScript these days is that there is a plethora of choices for writing and running JavaScript code. In this article, I’m going to describe a few of these environments and show you the environment I’ll be using in this series of articles.