🖨 Print / Save PDF
← Lesson
BitWith
Bite
Full-Stack · Quick Reference
Lesson 28 — Project 5: REST API + Auth
Cheat Sheet
Full-Stack
In one line:
A fully authenticated backend: register/login with bcrypt+JWT, and CRUD routes scoped to the logged-in user.
Build Checklist
1
POST /register — hash + save
2
POST /login — verify + sign JWT
3
protect middleware on all CRUD routes
4
Resources linked to userId
5
Users only touch their own data
Must-Haves
No token
401, not a crash
Password field
Never in API responses
Secrets
.env, never committed