configuration: {ssl: { rejectUnauthorized: false },},
heroku create
heroku config:set SESSION_SECRET=random-secret
heroku addons:create heroku-postgresql:mini
git add .
git commit -m "todo app deploy"
git push heroku master
heroku ps:scale web=1:eco
heroku apps:open
- Basic Setup:
express
and remult
npm i express remult
npm i --save-dev @types/express ts-node-dev concurrently
See Basic Setup
- Authentication:
cookie-session
npm i cookie-session
npm i --save-dev @types/cookie-session
See Authentication
- Postgres:
npm i pg
npm i --save-dev @types/pg
See Connect to Postgres
- For Heroku Deployment:
npm i compression helmet heroku-ssl-redirect
npm i @types/compression --save-dev
See Prepare for Production