Overview
@mercury-js/core
is a rapid API generation package that simplifies backend service development by generating Mongoose models, CRUD operations, GraphQL typedefs, and resolvers from a JSON model. It also supports pre- and post-event hooks and access control via profiles, enabling field-level and operation-level permissions.
Getting Started
Get started by installing the package and setting up a server with your preferred framework (e.g., Next.js, Express).
What you'll need
- Node.js version 14 or above
- MongoDB database
Generate a new site
The package provides you with a mercury
instance that handles all the core functionalities. You can start using it by defining your models, setting up profiles, and implementing custom hooks to manage your data and access control.