Serving schools, colleges & students across India Sign inRegister freeFAQsHelpcontact@ghosla.io
GHOSLAGrowth Hub for Opportunities, Skills, Learning & AchievementGrow•Learn•Achieve Login Get Started

Node.js & Express: Build REST APIs

Learn Node.js, Express 5, databases and JWT auth by building real backend APIs for Indian use cases

Ghosla Academy · Web Team

This course teaches backend development with Node.js and Express 5 from the ground up. You start with how Node runs JavaScript outside the browser, how npm and modules work, and how async code and the event loop fit together. Then you build REST APIs step by step: routes, middleware, validation, error handling and proper status codes, using examples like a kirana-store catalogue and a tiffin service. In the second half you store data in SQLite using Node's built-in driver, add pagination and filters, learn where MongoDB fits, and secure your API with hashed passwords, JWT login, CORS and rate limiting. You finish by deploying to a free hosting tier. Everything uses free tools and runs on a basic laptop, and each section ends with a quiz so you can check your understanding.

What you will be able to do

  • Explain how Node.js runs JavaScript on the server and why the event loop matters
  • Use npm, package.json scripts and modules to organise a backend project
  • Build REST APIs in Express 5 with routes, params, query strings and middleware
  • Validate input and return consistent JSON errors with correct HTTP status codes
  • Store data in SQLite with parameterised queries and add pagination and filters
  • Add password hashing, JWT login, CORS and rate limiting, then deploy to a free host

What you build

  • Tiffin service menu and orders REST API with validation
  • Secure student-notes API with password hashing, JWT login and SQLite storage

What you need to start

  • Comfort with basic JavaScript: variables, functions, arrays and objects
  • A laptop (Windows, macOS or Linux) with internet; 4 GB RAM is enough

Curriculum · 5 sections, 23 lectures

Node.js foundations5 lectures
  1. What Node.js is and why backends use itFree preview10 min
  2. Installing Node, npm and VS CodeFree preview10 min
  3. Modules, npm and package.json14 min
  4. Async JavaScript in Node: promises, async/await and the event loop15 min
  5. Quiz: Node.js foundations6 min
Express and HTTP basics5 lectures
  1. HTTP and REST in plain words12 min
  2. Your first Express server: routes, params and query15 min
  3. Middleware: express.json, logging and error handlers14 min
  4. Testing APIs with curl, Thunder Client and Postman8 min
  5. Quiz: Express and HTTP6 min
Building a CRUD API4 lectures
  1. CRUD routes for a kirana-store products API15 min
  2. Validation and consistent error responses14 min
  3. Project: Tiffin service menu and orders API20 min
  4. Quiz: CRUD and validation6 min
Saving data in a database4 lectures
  1. SQLite in Node with parameterised queries15 min
  2. Pagination, filtering and sorting12 min
  3. MongoDB and Mongoose: the other popular choice9 min
  4. Quiz: databases6 min
Auth, security and deployment5 lectures
  1. Password hashing and JWT login15 min
  2. Securing your API: CORS, rate limits and secrets13 min
  3. Deploying your API to a free hosting tier12 min
  4. Project: Secure student-notes API with login20 min
  5. Quiz: auth, security and deployment6 min

Who this is for

  • College students who know JavaScript and want their first backend skill
  • Frontend or React learners who want to build their own APIs
  • Freshers preparing for Node.js or MERN developer roles