// the find
diegohaz/rest
REST API generator with Node.js, Express and Mongoose
A Yeoman generator that scaffolds a Node.js REST API with Express, Mongoose, JWT auth, and optional social login. You run `yo rest` to get a project skeleton, then `yo rest:api` to generate new endpoint modules. Aimed at developers who want a head-start on a MongoDB-backed API without wiring the boilerplate themselves.
The per-endpoint folder structure (model, controller, routes, tests all co-located) is genuinely good architecture that scales better than a flat routes/ dump. The querymen/bodymen integration for query string parsing and validation is a real time-saver — pagination, field filtering, and input validation come out of the box. Test setup uses Jest with actual integration tests hitting a real DB, not mocked Mongoose — that's the right call. Optional auth modules (JWT, Facebook, Google, GitHub, password reset) are truly optional; you pick them at generation time rather than being stuck with dead code.
Dead project — last commit was 2023, last meaningful activity was years before that. The generated code is ES6+Babel from the 2016-2018 era; you'd get native ESM and async/await without Babel on any current Node. MongoDB/Mongoose is baked in with no escape hatch — if you want PostgreSQL, this generates nothing useful. The `MASTER_KEY` pattern for admin operations is a crude substitute for proper role-based access control and would get flagged in any security review.