Skip to content

Express guide ​

In this guide you'll build a small notes app on Express. People sign up, save notes and read their own. Admins can read everyone's notes. It's small enough to finish in an afternoon and touches every part you'll use in a real project.

You'll learn how to:

  1. Create your project
  2. Run it and sign in for the first time
  3. Find your way around the files
  4. Add endpoints: public and signed-in
  5. Add permissions, and an admin-only one
  6. Add a table with a migration
  7. Build the notes endpoints
  8. Change a table later
  9. Add a frontend page
  10. Test your endpoints
  11. Get ready for production

Do the chapters in order. Each one builds on the last and ends with a way to check it worked.

Before you start ​

You need Node.js 22.18 or newer (node --version tells you) and a terminal. The guide uses SQLite, which needs nothing else installed. Where PostgreSQL, MySQL or MongoDB need something different, you'll see a tab for them.

On Windows, the commands work in PowerShell. Where PowerShell needs a different spelling, the guide shows it.

Don't know what a session or a permission is yet? How it works explains the terms in five minutes.

SelfAuth is MIT licensed. Generated code is also offered under 0BSD.