{"id":16105408,"url":"https://github.com/dinbtechit/ns-ceiling-fan-backend","last_synced_at":"2025-06-17T12:34:40.656Z","repository":{"id":181078931,"uuid":"498950826","full_name":"dinbtechit/ns-ceiling-fan-backend","owner":"dinbtechit","description":"NS Ceiling Fan Backend","archived":false,"fork":false,"pushed_at":"2022-09-28T02:05:07.000Z","size":193,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T02:44:03.050Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/dinbtechit/ns-ceiling-fan","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dinbtechit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-06-02T01:25:39.000Z","updated_at":"2023-07-13T22:14:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"53a49510-5e0b-401a-815d-403a03fdd427","html_url":"https://github.com/dinbtechit/ns-ceiling-fan-backend","commit_stats":null,"previous_names":["dinbtechit/ns-ceiling-fan-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dinbtechit/ns-ceiling-fan-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinbtechit%2Fns-ceiling-fan-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinbtechit%2Fns-ceiling-fan-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinbtechit%2Fns-ceiling-fan-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinbtechit%2Fns-ceiling-fan-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinbtechit","download_url":"https://codeload.github.com/dinbtechit/ns-ceiling-fan-backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinbtechit%2Fns-ceiling-fan-backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260358496,"owners_count":22997051,"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-10-09T19:09:30.753Z","updated_at":"2025-06-17T12:34:35.642Z","avatar_url":"https://github.com/dinbtechit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# NS Ceiling Fan Backend (APIs)\n\n**Technologies**\n- NestJS (A progressive nodejs framework)\n- REST API\n- Server Sent Events for Event Driven Communication to client-side.\n- Redis for cache\n\n## Installation\n\n```bash\n$ npm install\n```\n\n## Running the app\n```bash\n# watch mode\n$ npm run start:dev\n```\n\n## Test\n\n```bash\n# unit tests\n$ npm run test\n```\n\n# API Details:\n\n1. Get Fan Status\n```\ncurl -X GET \"http://localhost:3000/api/v1/fan/status\"\n```\n**output**\n```\n{ speed: 0, direction: true }\n```\n2. PUT pull Cord 1 \n```\ncurl -X PUT \"http://localhost:3000/api/v1/fan/cord/pull/1\"\n```\n\n3. PUT pull Cord 2\n```\ncurl -X PUT \"http://localhost:3000/api/v1/fan/cord/pull/2\"\n```\n\n4. To Listen For SSE events.\n```\ncurl -X GET \"http://localhost:3000/api/v1/fan/cord/pull/sse\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinbtechit%2Fns-ceiling-fan-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinbtechit%2Fns-ceiling-fan-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinbtechit%2Fns-ceiling-fan-backend/lists"}