{"id":26686022,"url":"https://github.com/goldeagle/wmjtyd-iot","last_synced_at":"2026-02-17T08:03:16.102Z","repository":{"id":284519787,"uuid":"955184197","full_name":"goldeagle/wmjtyd-iot","owner":"goldeagle","description":"wmjtyd-iot (IoT Control and Communication Platform) is a backend system for IOT system.","archived":false,"fork":false,"pushed_at":"2025-04-21T13:50:53.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T01:02:07.852Z","etag":null,"topics":["golang","iot","iothub","mqtt","tdengine"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goldeagle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-26T08:40:30.000Z","updated_at":"2025-04-21T13:50:56.000Z","dependencies_parsed_at":"2025-06-26T01:01:37.608Z","dependency_job_id":"94011204-f615-4d66-84d3-9b6990a7dae2","html_url":"https://github.com/goldeagle/wmjtyd-iot","commit_stats":null,"previous_names":["goldeagle/wmjtyd-iot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/goldeagle/wmjtyd-iot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldeagle%2Fwmjtyd-iot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldeagle%2Fwmjtyd-iot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldeagle%2Fwmjtyd-iot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldeagle%2Fwmjtyd-iot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goldeagle","download_url":"https://codeload.github.com/goldeagle/wmjtyd-iot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goldeagle%2Fwmjtyd-iot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29537257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T05:00:25.817Z","status":"ssl_error","status_checked_at":"2026-02-17T04:57:16.126Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","iot","iothub","mqtt","tdengine"],"created_at":"2025-03-26T11:15:55.764Z","updated_at":"2026-02-17T08:03:16.078Z","avatar_url":"https://github.com/goldeagle.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wmjtyd-iot Backend CLI\n\n[中文版](README_CN.md)\n\n**Important Note**: This project is only for technical learning and exchange in certain scenarios, and has not reached a production-ready state. Please use with caution.\n\nwmjtyd-iot (IoT Control and Communication Platform) is a comprehensive backend system for managing IoT devices, data, and communications. It provides:\n\n- Device management and monitoring\n- Real-time data collection and processing\n- Message brokering via MQTT\n- RESTful API for system integration\n- Time-series data storage and analysis\n- User authentication and authorization\n\n## Table of Contents\n- [Available Commands](#available-commands)\n- [System Requirements](#system-requirements)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [API Documentation](#api-documentation)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Available Commands\n\n### `wmjtyd-iot migrate`\nMigrate database by creating new database, importing SQL file and setting up user permissions.\n\n**Usage:**\n```bash\nwmjtyd-iot migrate --user \u003cusername\u003e --file \u003csql_file_path\u003e\n```\n\n**Flags:**\n- `--user`: Database user with create database right (required)\n- `--file`: Database file to load (required)\n- `--host`: Database server host (default: 127.0.0.1)\n- `--port`: Database server port (default: 3306)\n\n### `wmjtyd-iot serve`\nRun web api server \u0026 mqtt client.\n\n**Usage:**\n```bash\nwmjtyd-iot serve [flags]\n```\n\n**Flags:**\n- `--config`: Config file (default: config.yaml)\n- `--host`: Server host (default: 127.0.0.1)\n- `--port`: Server port (default: 3000)\n- `--prefork`: Enable prefork (default: false)\n- `--http`: Enable HTTP server (default: true)\n- `--grpc`: Enable gRPC server (default: false)\n- `--websocket`: Enable WebSocket server (default: false)\n\n### `wmjtyd-iot version`\nPrint the version number of wmjtyd-iot and Go environment.\n\n**Usage:**\n```bash\nwmjtyd-iot version\n```\n\n## System Requirements\n\n### Required Services\n- **Database**: MySQL 5.7+ or MariaDB 10.5+ or PostgreSQL 12+ (for relational data)\n- **Time-Series Database**: TDengine 3.3+ (for time-series data storage)\n- **Message Broker**: MQTT Broker (e.g. EMQX, Mosquitto)\n- **Cache**: Redis 6.0+\n- **Object Storage**: MinIO or S3-compatible storage\n\n### Development Environment\n- **Go**: 1.18+ (https://golang.org/dl/)\n- **Make**: For build automation\n- **Git**: For version control\n\n### Build Commands\nThe following Makefile commands are available for development and build automation:\n\n- `make daemon`: Build the application's backend daemon only\n- `make build`: Build the application with CPU arch \u0026 OS targeting\n- `make clean`: Clean build artifacts\n- `make test`: Run tests\n- `make fmt`: Format code\n- `make run`: Build and run the application\n- `make install-deps`: Install dependencies\n- `make lint`: Run static analysis\n- `make help`: Show available commands and their descriptions\n\n### Docker Commands\nThe following Docker-related commands are available for containerized deployment:\n\n- `make docker-build`: Build Docker image\n- `make docker-run`: Run Docker container\n- `make docker-push`: Push Docker image to registry\n- `make docker-compose-up`: Start all dependent services (MySQL, Redis, EMQX, etc.)\n- `make docker-compose-down`: Stop dependent services\n- `make docker-compose-logs`: View service logs\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/goldeagle/wmjtyd-iot.git\n   cd wmjtyd-iot\n   ```\n\n2. Build the binary:\n   ```bash\n   make daemon\n   ```\n\n3. Install dependencies:\n   ```bash\n   make deps\n   ```\n\n4. Run the application:\n   ```bash\n   ./wmjtyd-iot serve\n   ```\n\n## Configuration\n\nThe system can be configured via `config/config.yaml`. Key configuration options include:\n\n```yaml\nserver:\n  host: 0.0.0.0\n  port: 3000\n  timeout: 30s\n\ndatabase:\n  mysql:\n    host: localhost\n    port: 3306\n    user: root\n    password: secret\n    name: iot_platform\n\nmqtt:\n  broker: tcp://localhost:1883\n  client_id: wmjtyd-iot\n  qos: 1\n```\n\n## API Documentation\n\nThe system provides RESTful APIs documented using Swagger. You can access the API documentation at:\n\n- Swagger UI: `http://localhost:3000/swagger`\n- OpenAPI Spec: `http://localhost:3000/swagger.json`\n\n## Contributing\n\nWe welcome contributions! Please follow these steps:\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\nPlease ensure your code follows our coding standards and includes appropriate tests.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldeagle%2Fwmjtyd-iot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoldeagle%2Fwmjtyd-iot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldeagle%2Fwmjtyd-iot/lists"}