Deploying full stack application is awesome thing you can do in full stack development. as deploying on Heroku it looks daunting at first,i put together all steps you need to follow to deploy a working full stack application. It is quick and straight thing to do.

Creating PostgreSql database and setting up express application is out of this blogs scope.

First thing you should do is setting environment variables in .env file , variables which are required for basic application are following.

jwtSecret=lucky11
PG_USER= postgres_user
PG_PASSWORD= password
PG_HOST= localhost
PG_PORT= 5432
PG_DATABASE= database_name
NODE_ENV=development

_Make sure that you __gitignore _the .env file as keeping these environment variables open and accessible is unsafe thing you can do today.

#nodejs #deploy #heroku #psql

Deploy Node Application and PostgreSql Database to Heroku
1.20 GEEK