Hot Posts

6/recent/ticker-posts

Deploye Nodejs app on Heroku

Hello developers in this article I am going to explain steps by steps nodejs app deployment on the Heroku cloud server in simple steps

Pre Request:

  • nodejs installed
  • npm installed
  • Should have Git account
  • Should have Heroku account

Let's begin Deploying the Nodejs app on Heroku

Step 1: Install the express app generator to create a quick node app

npm install -g express-generator

create a nodejs express app app

express Testapp

Step 2: Create a profile in the app root directory

Step 3: Push it publicly on GitHub

Useful git command use as bellow:

git init

git add .

git commit -m"initial"

git push origin master

Step 4: Log in to Heroku web 

create an app with an available name on Heroku Dashboard 

goto deploy tab

connect Heroku to GitHub

select project and git branch name

press deploy button

and your node project is live 

Post a Comment

0 Comments