@gapcm/cli
v1.0.5
Published
CLI scaffolder for building a larger full-stack framework across backend and frontend apps.
Maintainers
Readme
@gapcm/cli
@gapcm/cli is the public CLI package for the GAPCM ecosystem. It is the starting point for a larger full-stack framework that aims to support both backend and frontend development from one shared toolchain.
It starts with CLI-based scaffolding for API modules, and is designed to grow into a broader ecosystem that can later include UI generation, shared patterns, and framework-level tooling for both BE and FE.
Repository: nam-rgba/gapcm
What it does today
- Generates backend module files from EJS templates.
- Keeps entity, repository, service, controller, and route names aligned with the module name.
- Exposes a single CLI entry point:
gapcm.
Install
npm install -g @gapcm/cliUsage
Generate a module:
gapcm add sampleShort alias:
gapcm g sampleRun the command from your target project folder so files are created in the correct app structure.
Generated files
For a module named sample, the CLI creates:
src/entities/sample.entity.tssrc/repository/sample.repository.tssrc/services/sample.service.tssrc/controllers/sample.controller.tssrc/routes/sample.admin.ts
Example
cd app/api
gapcm add user-profileThis generates UserProfile-based class names and userProfile-based file names.
Roadmap
gapcm is intended to evolve beyond API scaffolding into a broader framework that can support:
- shared backend conventions
- frontend scaffolding and UI generation
- reusable patterns across the full stack
- tooling that keeps BE and FE development aligned
Notes
- The package publishes
distandtemplates. - The CLI entry point is
gapcm. - The package is published publicly on npm.
