Skip to content

Express for FE devsFor front-end developers

Notes-style walkthrough of Express.js - from hello world to JWT auth, Prisma, sessions, files, WebSockets, and caching.

Who this is for ​

I've written this as if I'm leaving notes for myself - a front-end person who ships React/Vue/Svelte (or plain JS), knows fetch and SPA routing, and keeps wondering what actually sits behind /api/login.

If Next.js route handlers or Nuxt server routes feel a bit magical and you want the unbundled Express version of that story, you're in the right place. 🙂

How to follow along ​

  1. Install Node.js 20+ LTS (Setup)
  2. Read chapters in order - later ones assume earlier mental models
  3. Run stuff from examples/notes-api when a chapter points at it
  4. Keep the cheatsheet open once you're past the HTTP layer
bash
npm install
npm run docs:dev

And for the companion API:

bash
cd examples/notes-api
npm install
cp .env.example .env
npm run dev

What's intentionally missing ​

  • Nest / Fastify deep dives (pointed at in What next)
  • OAuth / social login
  • Production email providers (SES, SendGrid…) beyond "here's the hook"
  • Multi-node WebSocket scaling / Redis adapters (sketched in What next)
  • Deploy / Docker / K8s ops rabbit holes

We're here so you can open an Express codebase, find the route, follow the middleware, touch the user row, and not feel lost.

Wish you all the best - hope you're gonna enjoy the ride.

Best,

-- ł.

Notes-style Express tutorial for front-end folks