https://jot-test.herokuapp.com/
create config.js
in root project directory
exports.database = {
connectionString: POSTGRES URL,
ssl: TRUE IF USING HEROKU POSTGRES
}
exports.jwt_key = SECRET
Then run
npm install
npm run dev:front
Add these environment variables
DATABASE_URL=POSTGRES URL
JWT_SECRET=SECRET
Then run
npm install
npm run webpack:prod
npm prune --production
npm run prod
Attach Heroku Postgres to app
Add this config variable
JWT_SECRET = SECRET
Then build with Node Buildpack