DEV Community

Cover image for CalmAPI - A Production ready REST API generator using NodeJS & MongoDB
Sunil Kumar Samanta
Sunil Kumar Samanta

Posted on

CalmAPI - A Production ready REST API generator using NodeJS & MongoDB

Based on my previous NodeJS MongoDB starter package, Here is a Production ready Modular REST API Generator using NodeJS & MongoDB.
npm version

INSTALLATION

Install by running

npm i -g calmapi
Enter fullscreen mode Exit fullscreen mode

Then run inside your workspace directory

calmapi
Enter fullscreen mode Exit fullscreen mode

And follow the easy steps.

FEATURES

  • Production ready - Controller, Model & Service oriented architecture
  • Modules with automated Routing (Nested Route support)
  • Built-in Authentication Module with JWT & DB Store authentication
  • Built-in User Module
  • Build-in CRUD operations for modules with pagination, filters, sorters
  • Sample Post Module (CRUD Operation Example)
  • CRUD Module generation command line support.[Alpha]
  • No Hidden sh*ts in your node_modules. Completely free to customize
  • Prebuilt CRUD operation classes for Controller & Service
  • DTO Support( Data transfer Object)
  • Eslint rules enabled
  • .env support
  • And many more

Here is the github repo

GitHub logo sunilksamanta / calmapi

Production ready Modular REST API Generator using NodeJS & MongoDB

Calm API

Production ready Modular REST API generator using NodeJS & MongoDB

Calm API

npm version David DeepScan grade

INSTALLATION

Install by running

npm i -g calmapi
Enter fullscreen mode Exit fullscreen mode

Then run inside your workspace directory

calmapi
Enter fullscreen mode Exit fullscreen mode

And follow the easy steps.

MODULE GENERATION

Generate CalmAPI CRUD Module just by running the following inside project's root.

calmapi generate module product
Enter fullscreen mode Exit fullscreen mode

Valid Module generation commands.

calmapi generate module product
Enter fullscreen mode Exit fullscreen mode
calmapi generate module products
Enter fullscreen mode Exit fullscreen mode
calmapi generate module productMeta
Enter fullscreen mode Exit fullscreen mode
calmapi generate module ProductMeta
Enter fullscreen mode Exit fullscreen mode
calmapi generate module product-meta
Enter fullscreen mode Exit fullscreen mode

Generate Module name without pluralize

calmapi generate module test-series --force
Enter fullscreen mode Exit fullscreen mode

FEATURES

  • Production ready - Controller, Model & Service oriented architecture
  • Modules with automated Routing (Nested Route support)
  • Built-in Authentication Module with JWT & DB Store authentication
  • Built-in User Module
  • Built-in Media Module for file upload [AWS S3 Support]
  • Build-in CRUD operations for modules with pagination, filters, sorters
  • Sample Post Module (CRUD Operation Example)
  • CRUD Module generation command line support.
  • No Hidden sh*ts in your node_modules. Completely…






We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: Reporting a bug, Documentation, Discussing the current state of the code, Submitting a fix or Proposing new features.

Top comments (1)

Collapse
 
abbayosua profile image
Abba Yosua

Wow, this is really good, thanks mate!