zenntechinc-cli
v1.3.8
Published
ZENNTECHINC official CLI for bootstrapping backend API projects
Maintainers
Readme
zenntechinc/cli
Official ZENNTECHINC CLI for creating backend projects.
Install Globally
npm i -g zenntechinc-cliCreate a New Project
zenntechinc new project-nameOptional:
zenntechinc new project-name --skip-installThen install dependencies and build:
cd project-name
npm install
npm run buildRun the Generated Backend (Step-by-Step)
- Start backend in development:
npm run dev- Verify it is working:
curl http://localhost:3000/
curl http://localhost:3000/api/health- Optional MongoDB setup (only needed when your feature requires DB persistence):
Quick local Docker option:
docker compose up -d mongoMongoDB Atlas option (cloud):
- Create an Atlas project and cluster (M0/free is fine for development).
- Create a database user (username/password).
- Add your IP in Network Access (for dev, you can temporarily allow
0.0.0.0/0). - In Atlas, open Connect -> Drivers and copy the connection string.
- Put the connection string in
.envasMONGODB_URI, for example:
MONGODB_URI=mongodb+srv://<db-user>:<db-password>@<cluster-url>/zenntechinc?retryWrites=true&w=majorityIf your database password has special characters, URL-encode it.
Note:
- The generated server attempts MongoDB connection on startup.
- If MongoDB is unavailable and
MONGODB_REQUIRED=false, it logs a warning and continues to run.
Auth and Hooks Scaffold (Default Template State)
Generated projects include sample auth scaffolding as commented templates:
app/routes/auth.module.tsapp/controllers/auth.controller.tsapp/services/auth.service.tsapp/common/guards/admin-auth.guard.tsapp/hooks/auth.hook.ts
These files document connection flow only and do not register active auth endpoints by default.
Generated Backend Stack
Each generated backend project includes:
- Node.js + TypeScript
- Express.js API
- Socket.IO realtime support
- MongoDB + Mongoose
- JWT + bcrypt dependencies ready for auth implementation
- Commented auth scaffolds (route/controller/service/guard/hook)
- Optional Redis caching
- Jest + Supertest tests
- ESLint + Prettier setup
- Docker Compose (
api,mongo,redis)
