cheatsheets devlog projects

Express Cheatsheet

2022-11-12 2

These are my notes on setting up and using express.

Express starter - Every express project starts with these commands:

Put, patch and deletes - Lets me use router.delete and router.put:,-patch-and-delete-in-express.html

File uploads - nuff said:

SQLite3 - Using sqlite3 as the database:

Sessions and authentication - uses an in memory db for sessions:

Authentication - this uses better-sqlite3 for sessions:

Authentication - uses postgres for sessions:

bcrypt - used for password hashing and comparing:

pm2 - process manager to manage applications: