Deploy a Express.js project on Heroku
Step by step from command line by Steve Tuan
const PORT = process.env.PORT || 3000
app.listen(PORT, () => console.log(`Example app listening on port ${PORT}!`))
web: node app.js
- MongoDb: change url provided by Mlab
- Mysql: host, user, password
$ git init
$ git add .
$ git commit -m "init"
$ heroku create myfirstexpress
$ git push heroku master
$ heroku open
http://myfirstexpress.herokuapp.com/