How cmhehe176/aiot-platform-server works
Project type and purpose
• This is a monolithic backend server built with NestJS (“AIot Platform Server”) that exposes REST and WebSocket APIs, integrates with a PostgreSQL database, RabbitMQ for asynchronous messaging, Zabbix for device polling/monitoring, handles email/storage, and runs in Docker Compose.
File structure
• Top level: Docker configs (Dockerfile, compose.yml), CI workflows, env examples.
• src/ splits into:
• common/: shared decorators, constants, utils
• database/: TypeORM data source, entities, migrations, seeders
• feature/: one module per domain concept (auth, device, sensor, message, notification, email, socket, storage, rabbit-mq, etc.)
• app.*: NestJS root module, controller, service
• main.ts: bootstrap
• Config files for Nest CLI, TypeScript, ESLint, Prettier.
Insights from the README
• Requires Docker Compose to stand up: server, PostgreSQL, Zabbix, Adminer.
• Scripts to sync DB (yarn migration), seed, and run in dev/prod.
• Exposes HTTP on port 3000, Zabbix UI on 8081, Adminer on 8080.
Detail level
• Migrations/seeders as part of build/deploy workflow.
• CI pipelines (build.yml, deploy.yml) at the edge to illustrate automation.