you just create heroku account
install heroku cli until you could use command heroku
create app in heroku and fllow the step by step
heroku login
heroku addons:create heroku-postgresql
after that you could use DATABSE_URL env Var as db url
git push heroku master
it will push to heroku repo and deploy
the return is url and you could use it
https://devcenter.heroku.com/articles/pre-provision-database