Production-oriented MEAN stack starter with:
- MongoDB + Mongoose
- Express + Node.js 20+
- Angular 17+ style architecture (standalone, lazy routes, signals, control flow)
- TypeScript strict mode on frontend and backend
- Docker multi-stage images for backend and frontend (Nginx)
- docker-compose for local full-stack development
- CI pipeline (GitHub Actions) for lint, test, and build
- Git hooks (
husky+lint-staged) and Conventional Commit enforcement (commitlint)
.
├── backend
├── frontend
├── docker-compose.yml
└── .github/workflows/ci.yml
cd backend
cp .env.example .env
npm install
npm run devcd frontend
npm install
npm startdocker compose up --build- Frontend:
http://localhost:4200 - Backend API:
http://localhost:3000 - MongoDB:
mongodb://localhost:27017
GET /health/livenessGET /health/readinessPOST /api/v1/auth/loginGET /api/v1/usersPOST /api/v1/users
All API responses follow:
{
"success": true,
"data": {}
}or
{
"success": false,
"error": {
"code": "ERROR_CODE",
"message": "Readable message",
"details": {}
}
}