Deploying a Node.js project to heroku
· One min read
To deploy a Node.js app to Heroku, follow the instructions below:
In the terminal, navigate to the root of your project and follow the steps below:
npm install -g heroku
heroku login
heroku apps:create <project_name> // Example, heroku apps:create vikhyaat
git push heroku main
You can now access your backend on https://<project_name>.herokuapp.com
Example, https://vikhyaat.herokuapp.com/