Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.