|
|
3 月之前 | |
|---|---|---|
| apps | 3 月之前 | |
| dashboard | 3 月之前 | |
| database | 3 月之前 | |
| mcp-server | 3 月之前 | |
| monitoring | 3 月之前 | |
| nginx | 3 月之前 | |
| services | 3 月之前 | |
| .env.example | 3 月之前 | |
| .gitignore | 3 月之前 | |
| CLAUDE_DESKTOP_CONFIG.md | 3 月之前 | |
| DEPLOYMENT.md | 3 月之前 | |
| README.md | 3 月之前 | |
| docker-compose.yml | 3 月之前 | |
| package-lock.json | 3 月之前 | |
| package.json | 3 月之前 |
A comprehensive, Docker-based SaaS platform inspired by Supabase but designed for self-hosting TypeScript applications.
Clone and Setup
cp .env.example .env
# Edit .env with your configuration
Start Services
npm run start
# or
docker-compose up -d
admin@example.com / admin_password_change_meminioadmin / minioadmin_change_meadmin / admin_password_change_mesaas_dbsaas_usersecure_password_change_meredis_secure_password_change_me|- Admin Dashboard: http://localhost:5173
For AI/LLM integration, see MCP Server Setup:
# Install MCP server
cd mcp-server && npm install -g .
# Configure Claude Desktop (see CLAUDE_DESKTOP_CONFIG.md)
# Add to ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"saas-platform": {
"command": "mcp-saas-server",
"env": {
"SAAS_API_URL": "http://localhost:8888",
"SAAS_AUTH_URL": "http://localhost:8888/auth",
"SAAS_STORAGE_URL": "http://localhost:8888/storage"
}
}
}
}
| Service | Status | Port | Access |
|---|---|---|---|
| PostgreSQL | ✅ Healthy | 5432 | localhost:5432 |
| Redis | ✅ Healthy | 6379 | localhost:6379 |
| API Gateway | ✅ Running | 8888 | http://localhost:8888 |
| Auth Service | ✅ Running | 3001 | http://localhost:3001 |
| API Service | ✅ Running | 3000 | http://localhost:3000 |
| Real-time Service | ✅ Running | 3002 | http://localhost:3002 |
| MinIO Storage | ✅ Healthy | 9000/9001 | http://localhost:9001 |
| pgAdmin | ✅ Running | 5050 | http://localhost:5050 |
| Prometheus | ✅ Running | 9090 | http://localhost:9090 |
| Grafana | ✅ Running | 3003 | http://localhost:3003 |
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ Nginx │ │ Auth │ │ PostgreSQL │
│ Gateway │◄──►│ Service │◄──►│ Database │
└─────────────┘ └──────────────┘ └─────────────┘
│ │
▼ ▼
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ Redis │ │ API │ │ MinIO │
│ Cache │◄──►│ Service │◄──►│ Storage │
└─────────────┘ └──────────────┘ └─────────────┘
Copy .env.example to .env and configure:
# Install dependencies
npm install
# Start in development mode
npm run dev
# View logs
npm run logs
# Stop services
npm run stop
services/The platform supports hosting TypeScript applications:
apps/ directoryPOST /auth/register - Register new userPOST /auth/login - User loginPOST /auth/logout - User logoutGET /auth/me - Get current userPUT /auth/profile - Update profilePUT /auth/password - Change passwordGET /api/applications - List applicationsPOST /api/applications - Create applicationGET /api/applications/:id - Get application detailsPUT /api/applications/:id - Update applicationDELETE /api/applications/:id - Delete applicationPOST /api/deployments - Create deploymentGET /api/deployments/:id - Get deployment statusPOST /api/deployments/:id/rollback - Rollback deploymentFor production deployment:
.envnginx/ssl/MIT License - see LICENSE file for details
For issues and questions:
npm run logs