{"repo":"prathamesh7pute/coral","free":true,"listed":false,"github":"https://github.com/prathamesh7pute/coral","clone":"git clone https://github.com/prathamesh7pute/coral.git","description":"Node.js framework to create REST API with express and mongoose models","language":"TypeScript","stars":12,"topics":["coral","rest","mongodb","mongoose-model"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Coral 🪸 Coral is a lightweight Node.js framework designed to dynamically generate RESTful API routes for Express applications using Mongoose models. It eliminates boilerplate code by automatically creating CRUD routes with built-in support for pagination, sorting, filtering, and nested sub-documents. Features - ⚡ Auto-generated CRUD : Instantly create GET, POST, PUT, and DELETE routes. - 🔍 Powerful Queries : Built-in support for skip , limit , sort , and order via query parameters. - 📂 Sub-document Support : Easily manage nested Mongoose documents. - 🛡️ Middleware Support : Inject custom Express middlewares into your routes. - 🔗 Reference Updates : Automatically update references in related models (via updateRef ). - 🛠️ Configurable : Fine-tune available methods, pagination limits, and more. --- Installation --- Usage 🚀 Basic Example Creating a full REST API for a \"Product\" model: --- Advanced Documentation 🛠️ Configuration API The Coral constructor takes a configuration object. Here are the available options with examples for each: Property Type Description :--- :--- :--- path string The base path for the routes. model Model The Mongoose model to bind to. methods string[] Allowed HTTP methods. Default: ['GET', 'POST', 'PUT', 'DELETE'] . middlewares RequestHandler[] Custom Express middlewares to run before handlers. conditions QueryConditions Base Mongoose filter used for all operations. options QueryOptions Base Mongoose query options (sort, skip, limit, etc.). field","default_branch":null,"files":null,"tree":[],"storefront":"/r/prathamesh7pute","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/prathamesh7pute/coral/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}