Skip to content

Add MongoDB/Redis auto-configuration and commit generated OpenAPI specs#9

Draft
Copilot wants to merge 9 commits intomasterfrom
copilot/generate-complete-api-doc
Draft

Add MongoDB/Redis auto-configuration and commit generated OpenAPI specs#9
Copilot wants to merge 9 commits intomasterfrom
copilot/generate-complete-api-doc

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 12, 2026

Enables autonomous MongoDB and Redis setup for local development and commits production-ready OpenAPI documentation.

Environment Setup

Auto-configuration script (scripts/setup-mongodb.sh)

  • One-command MongoDB 7 + Redis deployment via Docker
  • Container lifecycle management (start/stop/status/logs)
  • Health checks and connection validation

Development config (config.dev.yaml)

  • Complete local dev environment defaults
  • MongoDB: localhost:27017, database: mx-space
  • Redis: localhost:6379
  • JWT, throttling, CORS, encryption presets

Code Fixes

Missing isDev imports

  • app.module.ts - Debug module conditional loading
  • helper.module.ts - EventEmitter verbose leak config
  • metadata.ts - ESLint compliance for auto-generated file

These were causing runtime ReferenceError: isDev is not defined when generating Swagger docs.

API Documentation

Committed OpenAPI specs

  • openapi.json (18KB) - OpenAPI 3.0 format
  • swagger.yaml (12KB) - YAML format
  • 40+ endpoint modules with JWT auth, pagination schemas
  • Direct import to Apifox/Postman/Insomnia

Access

# Via Swagger UI (when server running) http://localhost:2333/api-docs # Or use committed files directly cat openapi.json

Usage

# Start dependencies docker run -d --name mx-space-mongo -p 27017:27017 mongo:7 docker run -d --name mx-space-redis -p 6379:6379 redis:alpine # Run app with dev config pnpm dev -- --config config.dev.yaml

Comprehensive setup guide: docs/MONGO_REDIS_SETUP.md


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits February 12, 2026 06:27
Co-authored-by: sysfox <99103591+sysfox@users.noreply.github.com>
Co-authored-by: sysfox <99103591+sysfox@users.noreply.github.com>
…n comment Co-authored-by: sysfox <99103591+sysfox@users.noreply.github.com>
Copilot AI changed the title [WIP] Add complete API documentation for project Add OpenAPI 3.0 documentation with Apifox/Postman export Feb 12, 2026
Copilot AI requested a review from sysfox February 12, 2026 06:40
Co-authored-by: sysfox <99103591+sysfox@users.noreply.github.com>
Copilot AI changed the title Add OpenAPI 3.0 documentation with Apifox/Postman export Add OpenAPI 3.0 documentation with committed spec files Feb 12, 2026
Copilot AI and others added 2 commits February 12, 2026 06:52
Co-authored-by: sysfox <99103591+sysfox@users.noreply.github.com>
Co-authored-by: sysfox <99103591+sysfox@users.noreply.github.com>
Copilot AI changed the title Add OpenAPI 3.0 documentation with committed spec files Add MongoDB/Redis auto-configuration and commit generated OpenAPI specs Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants