Module Recap
Module 07 assembled the complete Bulletin backend. The API is designed, built, and deployed to Railway. This is the halfway point of the course.
What you built
Section titled “What you built”A complete REST API for a community board. The Bulletin backend accepts HTTP requests, authenticates users, reads and writes a SQLite database, and returns structured JSON responses.
Seven endpoints across four resources:
| Endpoint | Auth | What it does |
|---|---|---|
POST /auth/register | — | Create account, return JWT |
POST /auth/login | — | Verify credentials, return JWT |
GET /posts | — | Paginated post feed with author info |
GET /posts/:id | — | Single post with author info |
POST /posts | ✓ | Create post |
DELETE /posts/:id | ✓ | Delete own post |
POST /posts/:id/upvote | ✓ | Toggle upvote (atomic transaction) |
GET /posts/:id/comments | — | Comment thread |
POST /posts/:id/comments | ✓ | Add comment |
GET /users/:id | — | User profile with post count |
Deployed and running. The API is live on Railway, accessible from anywhere, ready for the React frontend to connect to.
The full stack so far
Section titled “The full stack so far”React frontend (not yet built) ↕ HTTP requestsBulletin API on Railway ├── Express routes + middleware ├── bcrypt + JWT authentication └── SQLite databaseWhat’s next
Section titled “What’s next”Part 2 of the course covers the frontend. In the next five modules you’ll:
- Understand the client-server mental model for React developers (Module 08)
- Store and use JWTs in a React app with Auth Context (Module 09)
- Build the post feed, create post form, and post detail (Module 10)
- Add comments, user profiles, upvoting, search, and polish (Module 11)
- Wire the frontend to the Railway API and deploy to GitHub Pages (Module 12)
Your Railway URL
Section titled “Your Railway URL”Save your Railway API URL — you’ll need it in Module 08:
https://[your-app].up.railway.appTest it one more time before moving on:
curl https://[your-app].up.railway.app/posts# Should return an empty array [] initiallyKey takeaways from Part 1
Section titled “Key takeaways from Part 1”- Node.js is JavaScript on the server — same language, different environment
- Express adds routing and middleware over Node’s raw HTTP module
- Middleware pipelines let you compose request handling from small, focused functions
- SQLite with better-sqlite3 is synchronous, fast, and simple for learning
- bcrypt + JWT is the standard auth pattern for API + SPA applications
- Railway deploys Node.js apps from GitHub with minimal configuration
What is next
Section titled “What is next”Module 08 — Connecting React to an API →
Module 08 starts Part 2. You’ll scaffold the Bulletin React frontend, understand how React talks to a backend API, install and configure axios, build an API client module, handle loading/error/success states, and set up React Router for the multi-page app.