{"id":20259972,"url":"https://github.com/influxdata/iot-api-ui","last_synced_at":"2025-10-16T06:41:36.493Z","repository":{"id":37852761,"uuid":"498827285","full_name":"influxdata/iot-api-ui","owner":"influxdata","description":"Common React UI for iot-api-\u003cjs, python, etc.\u003e example apps designed for InfluxDB client library tutorials.","archived":false,"fork":false,"pushed_at":"2025-01-14T21:04:18.000Z","size":145,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-11T01:40:58.453Z","etag":null,"topics":["data-visualization","influxdata","influxdb","influxdb-js-client","influxdb-python","nextjs","react","visualization"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/influxdata.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,"zenodo":null}},"created_at":"2022-06-01T17:08:04.000Z","updated_at":"2025-01-14T21:04:15.000Z","dependencies_parsed_at":"2022-06-22T21:43:17.529Z","dependency_job_id":"602495e6-2013-485f-b091-b7b31fe47512","html_url":"https://github.com/influxdata/iot-api-ui","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/influxdata/iot-api-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fiot-api-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fiot-api-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fiot-api-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fiot-api-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/influxdata","download_url":"https://codeload.github.com/influxdata/iot-api-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fiot-api-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273570543,"owners_count":25129256,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["data-visualization","influxdata","influxdb","influxdb-js-client","influxdb-python","nextjs","react","visualization"],"created_at":"2024-11-14T11:17:28.816Z","updated_at":"2025-10-16T06:41:31.449Z","avatar_url":"https://github.com/influxdata.png","language":"TypeScript","readme":"# UI for iot-api tutorials\n\nThis is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) and\ncustomized to route `/api` requests to external middleware -\nspecifically, the InfluxData `iot-app-\u003cjs, python, etc.\u003e` example applications.\n\n## Start the Next.js frontend app\n\n1. Run the development server:\n\n   ```bash\n   npm run dev\n   # or\n   yarn dev\n   ```\n\n  By default, the server runs on port `:3000`; otherwise, the next available port (for example, `3001`).\n  Visit [http://localhost:3000](http://localhost:3000) in your browser to see the result.\n\n  To view the IoT Starter device dashboard, visit [http://localhost:3000/devices/](http://localhost:3000/devices/)\n\n1. To customize the UI default page, edit the `pages/index.tsx` file. The page auto-updates as you edit the file.\n\nNext.js provides a sample REST API at [http://localhost:3000/api/hello](http://localhost:3000/api/hello). To customize the sample endpoints, edit `pages/api/hello.ts`.\n\nView IoT Starter devices at [http://localhost:3000/devices/](http://localhost:3000/devices/).\nTo customize the device pages, edit the files located in [`./pages/devices`](./pages/devices/).\n\n## Use with `iot-api-[language]` apps\n\nTo use the UI with one of the `iot-api-[language]` example apps, set `API_URL` in `./.env.development` to the URL of the API example app.\n\nThe UI automatically routes all `/api/` requests to your API server.\n`iot-api-ui` uses Next.js' _catch-all_ routing and [**`rewrites`** module](https://nextjs.org/docs/pages/api-reference/next-config-js/rewrites) to act as a proxy for cross-domain requests to the server.\nTo customize the URL rewrites, edit `next.config.js`.\n\n## Learn More\n\nFollow step-by-step tutorials to build the IoT Starter app:\n\n- [InfluxDB OSS v2 Python and JavaScript tutorials](https://docs.influxdata.com/influxdb/v2/api-guide/tutorials/)\n- [InfluxDB Cloud v2 Python and JavaScript tutorials](https://docs.influxdata.com/influxdb/cloud/api-guide/tutorials/)\n\nTo learn more about Next.js, see following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Fiot-api-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfluxdata%2Fiot-api-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Fiot-api-ui/lists"}