InfluxDB

Install

Install InfluxDB 2.7 | Docker

version: '3.3'
services:
  influxdb:
    image: influxdb:2.7
    container_name: influxdb
    ports:
      - '8086:8086'
    volumes:
      - ./db:/var/lib/influxdb2
      - ./config.yml:/etc/influxdb2/config.yml

create blank file config.yml in the root of directory. Look here for config options

docker compose up -d

visit http://localhost:8060 to set up user, bucket, and key

With NodeJS app

Install the InfluxDB 2.7 Node.js JavaScript client library

Dependancies

yarn add @influxdata/influxdb-client @influxdata/influxdb-client-apis

.env.local

INFLUX_URL=http://localhost:8086
INFLUX_TOKEN=YOUR_API_TOKEN
INFLUX_ORG=YOUR_ORG
INFLUX_BUCKET=YOUR_BUCKET

Credits