finds.dev← search

// the find

kunalkapadia/express-mongoose-es6-rest-api

★ 2,922 · JavaScript · MIT · updated Jul 2020

:collision: A boilerplate application for building RESTful APIs Microservice in Node.js using express and mongoose in ES6 with code coverage and JsonWebToken Authentication

A Node.js/Express/Mongoose boilerplate for REST APIs, wired up with JWT auth, ES6 via Babel, ESLint (Airbnb rules), test coverage, and Docker. It's aimed at developers who want a starting point that isn't completely bare-bones. Last touched in 2020, so treat it as a time capsule.

The toolchain choices are sensible and consistent — ESLint enforced via pre-commit hooks means the codebase stays clean from day one. JWT auth and param validation middleware are already wired in, which saves the usual copy-paste from Stack Overflow. Docker Compose setup for both dev and test environments is a real convenience. Code coverage via Istanbul is configured and enforced, not just installed and ignored.

Abandoned in 2020 — Babel transpiling ES6 is now unnecessary friction since Node.js has supported ES modules natively for years, and you'd be fighting the toolchain more than using it. No TypeScript, which is the obvious next step for any team that cares about maintainability. The project structure doesn't scale past a handful of resources — once you have 10+ routes, the flat layout under server/ becomes unwieldy with no guidance on how to extend it. Bluebird promises are explicitly listed as a feature in 2020, which tells you how dated the thinking is.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →