1- Specify the version of node on package.json
"engines": {
"node": "14.x"
},
npm install
heroku local web
Your app should now be running on http://localhost:5000/.
echo "/node_modules
npm-debug.log
.DS_Store
/*.env" > .gitignore
*/
git add .
git commit -m "Added a Procfile."
heroku login
heroku create
git push heroku main