A stunning, real-time microservices monitoring dashboard with beautiful animations, database connectivity status, and comprehensive service monitoring.
- Gradient backgrounds with glass morphism effects
- Real-time animations and hover effects
- Responsive design for all devices
- Professional typography with Inter font
- Smooth transitions and micro-interactions
- Live service status indicators with pulse animations
- Database connectivity status for each service
- Auto-refresh every 5 seconds
- Real-time activity feed with notifications
- Service response time tracking
- MongoDB connection status for each service
- Visual database indicators with floating animations
- Connection pool monitoring
- Database health metrics
- Service metrics dashboard
- Request count tracking
- Average response time monitoring
- Active service count
- Database connection count
- Interactive Mermaid.js architecture diagram
- Service-to-service communication visualization
- API endpoint monitoring
- Cross-service dependency tracking
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Frontend β β Auth Service β β Product Serviceβ
β Dashboard βββββΊβ (Port 8081) β β (Port 8082) β
β (Port 3000) β β β β β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β β
β βΌ βΌ
β βββββββββββββββββββ βββββββββββββββββββ
β β Auth DB β β Product DB β
β β MongoDB β β MongoDB β
β βββββββββββββββββββ βββββββββββββββββββ
β
βΌ
βββββββββββββββββββ βββββββββββββββββββ
β Order Service β β Order DB β
β (Port 8083) βββββΊβ MongoDB β
βββββββββββββββββββ βββββββββββββββββββ
- Java 17+
- Node.js 16+
- MongoDB 5+
- Gradle 7+
git clone <repository>
cd microservicescp shared/env.example shared/.env
# Edit shared/.env with your configurationmongod --dbpath /path/to/data/db# Terminal 1: Auth Service
cd auth-service && ./gradlew bootRun
# Terminal 2: Product Service
cd product-service && ./gradlew bootRun
# Terminal 3: Order Service
cd order-service && ./gradlew bootRun
# Terminal 4: Frontend Dashboard
cd frontend && npm start# Start all services in background
cd auth-service && ./gradlew bootRun &
cd product-service && ./gradlew bootRun &
cd order-service && ./gradlew bootRun &
cd frontend && npm start &- π Dashboard: http://localhost:3000
- π Auth Service: http://localhost:8081
- π¦ Product Service: http://localhost:8082
- π Order Service: http://localhost:8083
# Register user
curl -X POST http://localhost:8081/api/auth/register \
-H "Content-Type: application/json" \
-d '{"username":"admin","email":"admin@example.com","password":"password123"}'
# Login
curl -X POST http://localhost:8081/api/auth/login \
-H "Content-Type: application/json" \
-d '{"username":"admin","password":"password123"}'# Create product
curl -X POST http://localhost:8082/api/products \
-H "Content-Type: application/json" \
-d '{"name":"MacBook Pro","description":"High-performance laptop","price":1999.99,"stock":50,"category":"Electronics"}'
# Get all products
curl http://localhost:8082/api/products# Create order (replace PRODUCT_ID with actual ID)
curl -X POST http://localhost:8083/api/orders \
-H "Content-Type: application/json" \
-d '{"customerName":"John Doe","customerEmail":"john@example.com","items":[{"productId":"PRODUCT_ID","productName":"MacBook Pro","quantity":1,"price":1999.99}]}'
# Get all orders
curl http://localhost:8083/api/orderscurl http://localhost:8081/health # Auth Service
curl http://localhost:8082/health # Product Service
curl http://localhost:8083/health # Order Servicemicroservices/
βββ frontend/ # π¨ Beautiful Dashboard
β βββ server.js # Express server
β βββ views/
β β βββ dashboard.ejs # Stunning UI template
β βββ public/
β β βββ css/ # Tailwind CSS
β βββ package.json
βββ auth-service/ # π Authentication
β βββ build.gradle
β βββ src/main/java/
β βββ com/microservices/auth/
β βββ controller/ # REST endpoints
β βββ service/ # Business logic
β βββ model/ # User entity
β βββ config/ # Security config
βββ product-service/ # π¦ Product Management
β βββ build.gradle
β βββ src/main/java/
β βββ com/microservices/product/
β βββ controller/ # CRUD operations
β βββ service/ # Product logic
β βββ model/ # Product entity
βββ order-service/ # π Order Processing
β βββ build.gradle
β βββ src/main/java/
β βββ com/microservices/order/
β βββ controller/ # Order endpoints
β βββ service/ # Order logic
β βββ model/ # Order entities
βββ shared/ # βοΈ Configuration
βββ .env # Environment variables
βββ README.md
- β Service status with animated indicators
- β Database connectivity status
- β Response time tracking
- β Auto-refresh every 5 seconds
- β Live activity feed
- β Glass morphism design
- β Gradient backgrounds
- β Hover animations
- β Pulse effects for active services
- β Floating database indicators
- β Tooltips on hover
- β Real-time notifications
- β Interactive architecture diagram
- β Service metrics cards
- β Activity timeline
- Create service directory with Spring Boot structure
- Add health endpoint (
/health) - Update
frontend/server.jswith service configuration - Add service to dashboard monitoring
- Modify
frontend/views/dashboard.ejsfor UI changes - Update
frontend/public/css/for styling - Configure service endpoints in
frontend/server.js
# Frontend
FRONTEND_PORT=3000
# Services
AUTH_SERVICE_URL=http://localhost:8081
PRODUCT_SERVICE_URL=http://localhost:8082
ORDER_SERVICE_URL=http://localhost:8083
# MongoDB
MONGODB_URI=mongodb://localhost:27017
# JWT
JWT_SECRET=your-secret-key
JWT_EXPIRATION=86400000- JWT-based authentication
- CORS configuration
- Password hashing with BCrypt
- Environment-based configuration
- Secure API endpoints
- Real-time health checks
- Optimized database queries
- Efficient service communication
- Minimal resource usage
- Fast response times
-
MongoDB Connection Failed
- Ensure MongoDB is running
- Check connection string in
.env
-
Service Won't Start
- Verify Java 17+ is installed
- Check port availability
- Review application logs
-
Dashboard Not Loading
- Ensure all services are running
- Check browser console for errors
- Verify environment variables
# View service logs
tail -f auth-service/logs/application.log
tail -f product-service/logs/application.log
tail -f order-service/logs/application.log- Service uptime tracking
- Response time monitoring
- Database connection pooling
- API request analytics
- Error rate tracking
- Fork the repository
- Create feature branch
- Make changes
- Test thoroughly
- Submit pull request
MIT License - see LICENSE file for details
π Enjoy your beautiful microservices dashboard!