finds.dev

madhums/node-express-mongoose-demo

A simple demo app using node and mongodb for beginners (with docker)

View on GitHub

★ 5,092JavaScriptMITupdated Oct 2025

// the take

A reference Express + Mongoose blog app (signup, articles, comments) built to show 'the right way' to structure a classic MVC Node app, with Passport auth across five providers and a docker-compose dev setup. It's aimed at developers learning the old-school Express/Mongoose/Pug stack rather than at anyone building a real product on top of it.

Actually has tests and a passing CI workflow, not just a README demo. The MVC layout (controllers/models/views split, separate passport strategy files, env-based config) is a genuinely clean example of how these apps used to be organized. Docker-compose covers the full loop (app + mongo + test runner with a separate test DB URL) so you can run and test it without installing Mongo locally.

The stack itself is dated — Pug templates, Passport strategies for Twitter and LinkedIn are mostly unmaintained upstream at this point, so cloning this for a new project means inheriting fragile OAuth dependencies on day one. To even run the basic demo you need to register and configure four separate OAuth apps (Twitter, Google, LinkedIn, GitHub) just to get past signup, which is a lot of friction for something meant to be a quick-start. No TypeScript, and nothing in the visible structure (no CSRF middleware, no rate limiting) suggests this has been hardened beyond what Passport gives you by default — fine for a teaching example, risky if someone lifts the auth code directly into production.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
5,092
Forks
1,345
Language
JavaScript
License
MIT
Last commit
30 Oct 2025

// nearby

If node-express-mongoose-demo isn't quite it.

All repos →