web3-starter-py/boilerplates/dash
dependabot[bot] 77803b99a9
Bump urllib3 from 1.26.5 to 1.26.18 in /boilerplates/dash
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.5 to 1.26.18.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.5...1.26.18)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-28 04:41:53 +00:00
..
wrappers 💾 2023-03-12 15:29:57 -07:00
.env_example 💾 2023-03-12 15:29:57 -07:00
app.py 💾 2023-03-12 15:29:57 -07:00
Makefile 💾 2023-03-12 15:29:57 -07:00
Procfile 💾 2023-03-12 15:29:57 -07:00
README.md 💾 2023-03-12 15:29:57 -07:00
requirements.txt Bump urllib3 from 1.26.5 to 1.26.18 in /boilerplates/dash 2023-11-28 04:41:53 +00:00

Infrastructure Dashboards

This repository contains the source code for the infrastructure dashboards developed with plot.ly and dash.

Why Plotly

Plotly allows you to make beautiful and interactive dashboards in just a few lines of code, with data virtually any source that has a Python API.

How do the Infrastructure Dashboards work?

Plotly objects consist of one or more data components and a layout component. Both have subcomponents. Most, but not all, of the formatting is controlled in the layout.

This app is divided into the following resources:

  • wrappers/: where the API wrappers, style.py and settings.py live.
  • .env: where all the constants and keys/secrets are set.
  • app.py: entry point for the dashboard app: where the layout elements and the callback functions are set.

Running locally in dev mode

Setting up

Add an .env file:

cp .env_example .env

Create an virtual environment and install dependencies:

virtualenv venv
source venv/bin/activate

Installing

make install

Running

Run server at localhost:

make run

The dahsboard should be available at http://127.0.0.1:8051/ (note that the port is set in .env).


Learning Resources