{"id":20596986,"url":"https://github.com/tradle/serverless-iot-local","last_synced_at":"2025-04-14T23:52:15.609Z","repository":{"id":47450514,"uuid":"113872795","full_name":"tradle/serverless-iot-local","owner":"tradle","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-14T01:17:49.000Z","size":316,"stargazers_count":14,"open_issues_count":5,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T02:26:02.756Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/tradle.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}},"created_at":"2017-12-11T15:03:36.000Z","updated_at":"2025-04-14T01:16:46.000Z","dependencies_parsed_at":"2022-09-26T18:20:49.003Z","dependency_job_id":null,"html_url":"https://github.com/tradle/serverless-iot-local","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fserverless-iot-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fserverless-iot-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fserverless-iot-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tradle%2Fserverless-iot-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tradle","download_url":"https://codeload.github.com/tradle/serverless-iot-local/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248810709,"owners_count":21165168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-16T08:19:45.742Z","updated_at":"2025-04-14T23:52:15.591Z","avatar_url":"https://github.com/tradle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serverless-iot-local\n\nAWS Iot lifecycle and regular topic subscription events\n\n## Prerequisites\n* serverless@1.x\n* redis\n\n## Install\n\n1) `npm install --save serverless-iot-local`\n\n2) In `serverless.yml` add `serverless-iot-local` to plugins:\n\n```yaml\nplugins:\n  - serverless-iot-local\n```\n\n## Usage\n1. Start redis:  \n    `redis-server`\n\n2. If you're using [serverless-offline](https://github.com/dherault/serverless-offline), you can run:  \n\n    `sls offline start`\n\n    Otherwise run: \n    \n    `sls iot start`\n\nCLI options are optional:\n\n```\n--port                -p  Port to listen on. Default: 1883\n--httpPort            -h  Port for WebSocket connections. Default: 1884\n--noStart             -n  Prevent Iot broker (Mosca MQTT brorker) from being started (if you already have one)\n--skipCacheValidation -c  Tells the plugin to skip require cache invalidation. A script reloading tool like Nodemon might then be needed (same as serverless-offline)\n```\n\nThe above options can be added to serverless.yml to set default configuration, e.g.:\n\n```yml\ncustom:\n  serverless-iot-local:\n    start:\n      port: 1884\n    # Uncomment only if you already have an MQTT server running locally\n    # noStart: true\n    redis:\n      host: 'localhost'\n      port: 6379\n      db: 12\n```\n\n### Using with serverless-offline plugin\n\nPlace `serverless-iot-local` above `serverless-offline`\n\n```yaml\nplugins:\n  - serverless-iot-local\n  - serverless-offline\n```\n\n## Todo\n\n- Improve support of AWS Iot SQL syntax\n\n## License\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradle%2Fserverless-iot-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftradle%2Fserverless-iot-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftradle%2Fserverless-iot-local/lists"}