
nest102
nest getting started
Repository Info
About This Server
nest getting started
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
NestJS Modern DevOps Project
A progressive Node.js framework for building efficient and scalable server-side applications.
Description
A modern NestJS starter with full Docker Compose, GitHub Actions CI/CD, Docker MCP integration, secrets management, and monitoring best practices.
🚀 Quick Start
1. Local Development
npm install
npm run start:dev
2. Run with Docker Compose
# Build and start all services (NestJS + MySQL)
npm run docker:up
# View logs for the main container
npm run docker:logs
# Stop all services
docker compose down
# Remove all containers, images, and volumes for a clean slate
npm run docker:terminate
3. Testing
npm run test # Unit tests
npm run test:e2e # End-to-end tests
npm run test:cov # Coverage
🐳 Docker & Docker Compose
- All app and DB services are defined in
docker-compose.yml. - Use the npm scripts for easy management:
npm run docker:build– Build imagesnpm run docker:up– Start servicesnpm run docker:down– Stop servicesnpm run docker:logs– View logsnpm run docker:terminate– Full cleanup (containers, images, volumes)
🔄 GitHub Actions CI/CD
- Automated build, test, and Docker image push on every push to
main. - See
.github/workflows/docker.ymlfor details. - Images are pushed to Docker Hub (
yourdockerhubuser/nest102:latest).
☁️ Docker MCP Integration
- Deploy your app using Docker MCP (Managed Control Plane) for orchestration, scaling, and monitoring.
- Configure your MCP stack/service to use the latest image from Docker Hub.
- Use MCP's secrets manager for DB and JWT secrets.
- Set up webhooks or API triggers for auto-redeploy on new image push.
🔒 Security & Secrets Management
- Never commit secrets to code.
- Use
.envfiles locally (not committed), GitHub Secrets for CI, and MCP secrets for production. - Example secrets:
DB_PASSWORD,JWT_SECRET, etc.
📈 Monitoring & Alerts
- Use Docker MCP's built-in monitoring for container health, logs, and resource usage.
- Add a
/healthendpoint with@nestjs/terminusfor health checks (optional). - Set up alerts in MCP for failures or high resource usage.
📜 Scripts
| Script | Description |
|---|---|
| npm run start:dev | Start NestJS in watch mode |
| npm run docker:up | Start all services with Docker Compose |
| npm run docker:down | Stop all services |
| npm run docker:logs | View logs for main container |
| npm run docker:terminate | Remove all containers, images, volumes |
| npm run test | Run unit tests |
| npm run test:e2e | Run end-to-end tests |
| npm run test:cov | Run test coverage |
📝 Environment Variables
See .env.example or below for required variables:
# Database
DB_HOST=mysql
DB_PORT=3306
DB_NAME=nestjs_db
DB_USERNAME=nestjs_user
DB_PASSWORD=nestjs_password
DB_ROOT_PASSWORD=root_password
# JWT
JWT_SECRET=your-super-secret-key-here
JWT_EXPIRATION=1h
# App
PORT=3000
NODE_ENV=development
📦 Project Structure
src/– Source codeDockerfile– Multi-stage build for productiondocker-compose.yml– Service definitions.github/workflows/docker.yml– CI/CD pipeline
📚 Resources
- NestJS Documentation
- Docker Documentation
- GitHub Actions Docs
- [Your Docker MCP platform docs]
License
MIT
Database
DB_HOST=mysql DB_PORT=3306 DB_NAME=nestjs_db DB_USERNAME=nestjs_user DB_PASSWORD=nestjs_password DB_ROOT_PASSWORD=root_password
JWT
JWT_SECRET=your-super-secret-key-here JWT_EXPIRATION=1h
App
PORT=3000 NODE_ENV=development
Quick Start
Clone the repository
git clone https://github.com/luckyhegde6/nest102Install dependencies
cd nest102
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.