Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Lab 3 – MongoDB & Node.js REST API Development

This lab series introduces how to build a Node.js + MongoDB application from the ground up — starting with a cloud database, then connecting it through Express and Mongoose, and finally creating a full REST API with CRUD operations.

The lab is divided into three main parts:

Part 1 – MongoDB Cloud Setup

You’ll learn how to:

  • Create and configure a MongoDB Atlas account.
  • Deploy your first database cluster using the free plan.
  • Add collections and documents (DBFilmsColFilms).
  • Obtain and configure your database connection string for Node.js.

📄 See file: part1.md

Part 2 – Connecting Node.js to MongoDB

You’ll continue by developing a small API called MiniFilms, connecting it to the MongoDB database using the Mongoose library.

You’ll learn how to:

  • Scaffold an Express project.
  • Organize your project with routes and models.
  • Define a Mongoose schema for films.
  • Fetch and display data from your MongoDB Atlas cluster.

📄 See file: part2.md

Part 3 – Building the MiniPost REST Microservice

You’ll create a fully functional CRUD microservice called MiniPost that performs:

  • Create, Read, Update, Delete operations
  • Connection to MongoDB Atlas via Mongoose
  • Route handling with Express
  • Environment configuration using dotenv

📄 See file: part3.md