xacos add

Create a new backend module with controller, service, model, and routes.

Usage

xacos add <name>

Examples

xacos add Users
xacos add notifications
xacos add products

What It Generates

  • src/controllers/<name>.controller.js
  • src/services/<name>.service.js
  • src/models/<name>.model.js
  • src/routes/<name>.routes.js

The route is automatically registered in src/routes/index.js.