*Transformer APP en API
This project serves blog posts two ways:
- Traditional server-rendered HTML pages (SSR)
- A clean JSON API you can consume with
fetch()from any frontend
The goal: show the difference between an "application" that returns HTML and an "API" that returns raw data — and let you easily build your own client.
Git 🚀 https://github.com/dupontdenis/mongoose-API-virtual.git
A minimal, dependency-free web UI to view posts from a REST API.
Supported endpoints:
- GET
/api/posts— list all posts - GET
/api/posts/:id— get one post by ID
Methodes et Virtual in shema
🎓 Mongoose Virtual & Method Mini Demo
Minimal teaching project to show two core Mongoose schema features:
- A virtual property
url(computed, not stored in MongoDB) - An instance method
getSummary(maxLength)(logic with parameters)
Agregation
Tiny Mongoose walkthrough that models a simple university example and demonstrates two ways to compute an average: an instance method on the document and a MongoDB aggregation pipeline.
git 🚀 https://github.com/dupontdenis/mongoose-agregation.git
API with mongoose !
- Understand REST API principles
- Learn HTTP methods: GET, POST, PUT, PATCH, DELETE
- Work with Express.js and MVC pattern
- Connect to MongoDB
- Interact with the API using Fetch, curl, or the VS Code REST Client
git 🛩️ https://github.com/dupontdenis/let-s-start-mongoAPI.git
🚀Applications pour tester l'API !
Pensez à bien lancer le serveur dans un terminal
Simple : https://dupontdenis.github.io/testAPI/
Let's start with mongoose !
🎯 Learning Objectives
git 🛩️https://github.com/dupontdenis/introMongoose.git
This repository is a **hands-on tutorial** designed to teach you the fundamentals of Mongoose, the popular MongoDB object modeling library for Node.js. Through practical examples, you'll learn how to:
many to one !
git 🛩️
This repository is designed to teach you about two different ways to implement many-to-one relationships in MongoDB using Mongoose. We'll use a classic example: Authors and Books.
https://github.com/dupontdenis/mongoose-one-two-many.git