Heroku has great documentation for that: https://devcenter.heroku.com/articles/getting-started-with-nodejs