Skip to content

Latest commit

 

History

History
43 lines (41 loc) · 2.65 KB

README.md

File metadata and controls

43 lines (41 loc) · 2.65 KB

InfluxDB Client Examples

This directory contains javascript and typescript examples for node.js, browser, and deno.

  • Node.js examples
  • Browser examples
    • Change token, org, bucket, username, password variables in ./env_browser.mjs to match your InfluxDB instance
    • Run npm run browser It starts a local HTTP server and opens index.html that contains client examples. The local HTTP server serves all files from this git repository and also proxies requests to a configured influxDB database, see scripts/server.mjs for details.
  • Deno examples
    • query.deno.ts shows how to query InfluxDB with Flux. It is almost the same as node's query.ts example, the difference is the import statement that works in deno and built-in typescript support.