Deploy Nodejs + Dynamo DB application at Heroku
I am sure you have seen N number of blogs, so far on this topic. However, in my recent attempts to deploy this application, I found couple of bottlenecks.

I recommend you to read below mentioned blogs,
1. scotch.io
2. heroku docs
Follow the below steps:
☞ git clone <your-git-url>
Assuming you have your code on git repository.
☞ cd <your-git-cloned-directory>
Make sure you change directory to root application
☞ heroku login
You will be prompted with username & password. Proceed to enter
☞ Create Procfile file in your root application
(Linux/ Mac OSX) touch Procfile
Add this line to Procfile document web: node server.js
☞ Add npm start script
Open package.json in your application root directory. Add below lines at {scripts} section
“start”: “node server.js”
☞ : Make sure you have your server.js at {“main”} section
☞ Create heroku application
heroku create
☞ Push your code to heroku,
git push heroku master
☞ Add buildpack for DynamoDB through
heroku apps admin dashboard in
https://github.com/iDEAKITT/heroku-buildpack-dynamodb.git

☞ heroku restart
Restart your application to reflect the changes.
⚠ Troubleshooting
a) Don’t mention any fixed port in your node application
https://stackoverflow.com/questions/15693192/heroku-node-js-error-web-process-failed-to-bind-to-port-within-60-seconds-of