How to Deploy Your JavaScript Application

How to Deploy Your JavaScript Application

We’ll go over the quickest and easiest way on how to deploy your JavaScript application on to Heroku, using Git, Node, Node Package Manager(NPM), and Express.

Have you just finished your first JavaScript application and are now wondering “How do I get my application online?” In this tutorial, we’ll go over the quickest and easiest way on how to deploy your JavaScript application on to Heroku, using GitNodeNode Package Manager(NPM), and Express.

Heroku, is a cloud-based platform which offers a free plan for web developers to manage and deploy their projects. In order to utilize their services, we will have to sign up.

0. Prerequisites

Before we get started, please verify that Git, Node and NPM is installed by running the below commands in your terminal:

$ means to run the command in your terminal.

$ node --version

If Node is not installed, download it here.

$ npm --version

NPM is normally installed alongside with Node. However, if NPM isn’t installed on your system, try to reinstall a more current version of Node.

$ git --version

If Git is not installed, download it here. After Git is installed, let’s initialize a local repository for our application.

$ git init

1. Install Heroku CLI

Once we have signed up for Heroku and installed all prerequisites, install the Heroku CLI and login through your terminal.

$ heroku login

heroku express javascript nodejs programming

Bootstrap 5 Complete Course with Examples

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

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Express | Formas de enviar archivos en Express.js (Nodejs)

En este video vamos a aprender las formas en las que es posible enviar archivos desde Express, también llamados archivos estáticos. Aprenderemos a usar el método sendfile, el método static y tambien a utilizar motores de plantillas (template engine), como ejs.

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.

What Are The Reasons To Learn Express.js in 2021?

Planning to Learn Express.js in 2021 but aren't sure if it would be helpful? Read this article for all your questions to be answered.

Function Expression vs Function Declaration in JavaScript

In this article, we will acquaint ourselves with three simple terms: function declaration, function expression, and hoisting.

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.