Backend · Intermediate
Backend Development with Node.js
Design secure APIs, model application data and connect a real backend to the interfaces you build.

Backend program
- Lessons
- 6
- Study time
- 1h 45m
- Level
- Intermediate
- Program
- Backend
Sign in to open the lessons
6 lessons
Lessons, files and narration open after you sign in and buy the program. One payment opens every course in it.
Sign in to open a lesson. Buying the program opens every course and lesson in it, permanently.
About this course
Everything a front end shows has to come from somewhere. This course is that somewhere: a Node.js service with a well-designed HTTP API, a relational database, authentication, and tests that let you change the code without fear.
You will learn to model data in tables, write endpoints that behave predictably, validate input properly, hash passwords, authorise requests per user, handle errors with useful status codes, and test the API automatically before you deploy it. We work through what actually goes wrong in production — duplicated writes, missing indexes, secrets in the repository — and what to do about each.
The capstone is a REST API for a course platform: users, courses, enrollments and progress, with tests and documentation. It is deliberately the same shape of API as this platform's own, so you can read real code afterwards.
Who this is for
- You build front ends and want to own the whole product.
- You are tired of mock data and want to understand servers, databases and auth.
- You are preparing for a backend or full-stack interview.
Before you start
- Confident JavaScript, including asynchronous code, promises and `async`/`await`.
- Node.js installed on a laptop — this course cannot be completed on a phone alone.
- Eight to ten hours across a week.
Where it leads
- Databases & SQL goes deeper into what the database is doing for you.
- DevOps & Delivery takes the deployment from manual to automatic.
- Backend and full-stack roles are the best-paid junior work in Accra, and this is the course that makes a portfolio credible.
Tools you will use
What you will build
- 1REST endpoints with validation and sensible status codes
- 2A relational schema with keys, constraints and indexes
- 3Sign-up, sign-in and per-user authorisation
- 4An automated test suite that runs on every change
- 5A documented, deployed course-platform API
Curriculum
2 modules · 6 lessons · 1h 45m
Sign in to open each lesson
01 · API foundations
Build predictable boundaries between clients and servers.
1. Node.js & the server runtime
Node.js runs JavaScript outside the browser, on a runtime built around one single thread and an event loop that makes I/O non-blocking. This lesson builds that model — what Node is, how the event loop handles thousands of connections, why blocking the thread is the cardinal sin, how modules and the file system differ from the browser, and how an HTTP server actually receives and answers a request. Understanding the runtime is what separates code that scales from code that collapses under its first concurrent users.
2. HTTP & RESTful routes
An API's routes, methods and status codes are a language your clients must be able to read without documentation. This lesson covers resource modelling, the method semantics and idempotency rules, status-code discipline, consistent response and error shapes, versioning, pagination and filtering, and the tests that pin the contract down. A predictable API is not a style preference — it is what lets every client recover from every failure without guessing.
3. Validation & error handling
Every byte a client sends is hostile until proven otherwise — including the bytes from your own front end, because anyone can call your API directly. This lesson covers the validation boundary (what to check, where, and when), schema validation as a contract, sanitisation against injection, rate limiting, error responses that help users without helping attackers, and the error-handling architecture — typed errors, one handler, structured logs — that turns failures into diagnosable events. Validation is not a form feature; it is the wall your database lives behind.
02 · Data & security
Persist trustworthy data and protect each operation.
1. Database modeling
A schema is a set of promises about your data: what a row means, what must be true, and what relates to what. This lesson covers entities and keys, relationships and cardinality, normalisation as a discipline against update anomalies, constraints as enforced truth, indexing for the queries you actually run, and migrations that evolve the schema without losing what is already there. Get the model right and the code gets simpler; get it wrong and every feature carries the same structural debt.
2. Authentication & permissions
Authentication answers *who is asking*; authorisation answers *may they do this, to this thing*. This lesson covers password storage with dedicated slow hashing, session versus token designs, the cookie attributes that keep sessions safe, an authorisation matrix as a design artefact, ownership checks, OAuth and the danger zones (JWT pitfalls, reset flows, enumeration), and the endpoints that need extra armour. Getting this pair wrong is the breach — and both are enforced on the server, always.
3. Test & deploy the API
An API without automated tests is a set of promises nobody checks; a service without health checks, structured logs and a deployment pipeline is a set of promises nobody can keep at 3am. This lesson covers the test pyramid applied to APIs — contract and integration tests at the public boundary, where the value is — plus fixtures that isolate state, environments and configuration, observability (health, logs, metrics, traces), deployment mechanics with zero-downtime rollout, and the operational checklist that turns a codebase into a service.
6 lessons, including the a tested course-platform rest api project. Sign in and buy the program to open them. Create an account to track progress and earn the certificate.
Taught by a working engineer
Ibrahim Cole — Backend Engineer. Every lesson is written to be used, not just watched.
A verifiable certificate
Complete every lesson and you get a certificate with a code and QR that an employer can check in seconds.
Practice in the Code Lab
Write and run code in the browser while you learn, with your work saved to your own account.
Still have a question?
Email hello@codemasterghana.com or send a message from the contact page — we answer within two working days, in English or Twi.