Create free Heroku account and create new app from dashboard.
Download, install and login into Heroku CLI.
Set and add the following buildpacks using heroku cli:
$ heroku buildpacks:set heroku/nodejs -a YOUR_HEROKU_PROJECT_NAME
$ heroku buildpacks:add heroku/jvm -a YOUR_HEROKU_PROJECT_NAME
Install Heroku Postgres and provision it to your heroku app.
Open your heroku app Settings
from dashboard and set following Config Vars
from Heroku Postgres credentials:
PGSSL: TRUE // set to true
Also set the following Config Vars
:
HOST: YOUR_HEROKU_PROJECT_NAME.herokuapp.com
To upload images or some other multimedia - create free account on cloudinary
and paste your cloudinary configs into your heroku app Config Vars
:
CLOUDINARY_NAME
CLOUDINARY_KEY
CLOUDINARY_SECRET
heroku git:remote -a YOUR_PROJECT_HEROKU_GIT_URL
git push heroku master
or
git push heroku local_branch_name:master