cmp-lite
v2.0.0
Published

Downloads
52
Readme
cmp-lite
Lightweight CLI + Express microservice starter built with TypeScript.
Description
cmp-lite is a minimal Node.js microservice starter that combines:
- Express 5
- MongoDB (Mongoose)
- CLI interaction (Inquirer)
- Environment configuration (dotenv)
- Logging (Morgan)
- Colored console output (Chalk)
- TypeScript support
It can be used as a CLI tool or as a backend service foundation.
Installation
Global Installation (CLI usage)
npm install -g cmp-lite
Local Installation
npm install cmp-lite
Usage
Run CLI (Global Install)
cmp-lite
Development Mode
npm run dev
Build
npm run build
Start Production
npm start
Example .env File
Create a .env file in your root directory:
PORT=3000 MONGO_URI=mongodb://localhost:27017/test
Project Structure
cmp-lite/ ├── src/ │ └── app.ts ├── dist/ │ └── app.js ├── package.json └── tsconfig.json
Scripts
- npm run dev → Development mode (ts-node-dev)
- npm run build → Compile TypeScript
- npm start → Run compiled application
Technologies Used
- Node.js
- Express 5
- MongoDB (Mongoose)
- TypeScript
- Inquirer
- Chalk
- Morgan
- Dotenv
License
This project is licensed under the MIT License.
👨💻 Maintained by
Rktechpro
🔗 Er. Ravi
🏷️ MERN Stack Developer | Full-Stack Engineer
