GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - influxdata/iot-api-ui: Common React UI for iot-api-<js, python, etc.> example apps designed for InfluxDB client library tutorials.

BranchesTags
Open more actions menu

Latest commit

 

History

90 Commits
90 Commits

Folders and files

NameName
Last commit message
Last commit date
pages
pages
 
 
public
public
 
 
styles
styles
 
 
.env.development
.env.development
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
next-env.d.ts
next-env.d.ts
 
 
next.config.js
next.config.js
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

UI for iot-api tutorials

This is a Next.js project bootstrapped with create-next-app and customized to route /api requests to external middleware - specifically, the InfluxData iot-app-<js, python, etc.> example applications.

Start the Next.js frontend app

  1. Run the development server:

    npm run dev
    # or
    yarn dev

By default, the server runs on port :3000; otherwise, the next available port (for example, 3001). Visit http://localhost:3000 in your browser to see the result.

To view the IoT Starter device dashboard, visit http://localhost:3000/devices/

  1. To customize the UI default page, edit the pages/index.tsx file. The page auto-updates as you edit the file.

Next.js provides a sample REST API at http://localhost:3000/api/hello. To customize the sample endpoints, edit pages/api/hello.ts.

View IoT Starter devices at http://localhost:3000/devices/. To customize the device pages, edit the files located in ./pages/devices.

Use with iot-api-[language] apps

To 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.

The UI automatically routes all /api/ requests to your API server. iot-api-ui uses Next.js' catch-all routing and rewrites module to act as a proxy for cross-domain requests to the server. To customize the URL rewrites, edit next.config.js.

Learn More

Follow step-by-step tutorials to build the IoT Starter app:

  • InfluxDB OSS v2 Python and JavaScript tutorials
  • InfluxDB Cloud v2 Python and JavaScript tutorials

To learn more about Next.js, see following resources:

  • Next.js Documentation - learn about Next.js features and API.
  • Learn Next.js - an interactive Next.js tutorial.

About

Common React UI for iot-api-<js, python, etc.> example apps designed for InfluxDB client library tutorials.

Topics

data-visualizationinfluxdatainfluxdbinfluxdb-js-clientinfluxdb-pythonnextjsreactvisualization

Resources

Readme
Activity
Custom properties

Stars

18 stars

Watchers

6 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.