Friday | 08 DEC 2023

Express Cheatsheet


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: