/data-visualization

Primary LanguageJavaScriptMIT LicenseMIT

data-visualization

  • use compose file to set stack in docker
  • run docker-compose up -d
  • refer to this

Docs

Useful resources

Data Visualization worklfow

Node-red flow

Read data from a spreadsheet and convert cells into a json file

  • add pallete node-red-contrib-spreadsheet-in
  • run node-red
  • import the given flow
  • deploy it
  • download spreadsheet and specify the path of this file in the flow (file node), you may copy this file to container if you are using docker
  • call api localhoat:[port]/data

Read data from a spreadsheet and send each value one by one to influx

  • same steps as mentioned above
  • add pallete node-red-contrib-influxdb
  • setup influx first
  • create bucket in influxDB and connect it to your influx node
  • import the given flow

File Browser

  • import the given flow
  • refer to this to get more info about this flow.
  • run docker cp local/path/to/app [container_id]:/usr/src/node-red/ to copy app into container
  • run docker exec -it -u root node-red bash to open bash with root priviliges
File Uploader Set Up (uploads into local folder)
  • cd uploadApp
  • make sure you have nodejs installed as well as npm/yarn
  • yarn install
  • yarn start to build the project and run the node server
  • yarn host (2nd terminal) to run the frontend with exposed host port
  • the app is available at http://localhost:5173/
  • the app server is available at http://localhost:3001/