heroku Heroku node.js Hello World

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Remarks

login

heroku login

create app

heroku create or heroku create your_name

clone the example

git clone https://github.com/zoutepopcorn/herokuworld
cd herokuworld

visit app in your browser

https://your_name.herokuapp.com/

Optional test it local:

heroku local web

check: lolhost:5000

So whats different to a normal node.js app? package.json

"scripts": {
  "start": "node index.js"
},
"engines": {
  "node": "7.6.0"
}

index.js

process.env.PORT

Local port: 5000. Heroku will map it to port 80 on your app url.



Got any heroku Question?