web3-starter-py/boilerplates-dash
dependabot[bot] d0e3495821
Bump numpy from 1.21.0 to 1.22.0 in /boilerplates-dash
Bumps [numpy](https://github.com/numpy/numpy) from 1.21.0 to 1.22.0.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](https://github.com/numpy/numpy/compare/v1.21.0...v1.22.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-23 06:59:51 +00:00
..
wrappers cleanup names for dirs 2022-03-23 18:32:49 +04:00
.env_example cleanup names for dirs 2022-03-23 18:32:49 +04:00
app.py cleanup names for dirs 2022-03-23 18:32:49 +04:00
Makefile cleanup names for dirs 2022-03-23 18:32:49 +04:00
Procfile cleanup names for dirs 2022-03-23 18:32:49 +04:00
README.md cleanup names for dirs 2022-03-23 18:32:49 +04:00
requirements.txt Bump numpy from 1.21.0 to 1.22.0 in /boilerplates-dash 2022-09-23 06:59:51 +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