Saturday, 20 June 2020

Autogenerate a REST API from Mongoose schemas

This is something I quickly prototyped yesterday to automatically generate a REST API from existing Mongoose schemas. It's incredibly useful for mocking your exact backend, or just spinning up an MVP backend.Authentication is also built in (currently only supports email/password, but more in the works). I implemented granular permissions for API routes that can be set via configuration really easily, which uses JWTs from the user login.

Submitted June 20, 2020 at 05:46PM by io33

No comments:

Post a Comment