JulienBalestra / vue-flask

Quick web Dasboard / REST API with Prometheus exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue-Flask

Quick web Dashboard / REST API with Prometheus monitoring

preview

Stack

  • Backend

    • Flask
    • Gunicorn
  • Frontend

    • VueJS
    • Bootstrap

Use

Requirements

  • npm
  • python3
  • virtualenv
  • docker (optional)

Setup

make

Testing

make check

Gunicorn foreground

make run

Build and run the docker container

make image # optional
docker run -it --rm julienbalestra/vue-flask:latest

Observe prometheus metrics

curl http://${endpoint}/metrics

Structure

tree
.
|-- Dockerfile
|-- Makefile
|-- README.md
|-- app
|   |-- __init__.py
|   |-- api.py
|   |-- monitoring.py
|   |-- static
|   |   |-- Makefile
|   |   |-- css
|   |   |   `-- index.css
|   |   |-- js
|   |   |   `-- app.js
|   |   |-- media
|   |   |   |-- flask.png
|   |   |   `-- vuejs.png
|   |   `-- package.json
|   |-- templates
|   |   `-- index.html
|   `-- tests
|       |-- __init__.py
|       `-- test_api.py
|-- docs
|   `-- preview.png
`-- requirements.txt

8 directories, 15 files

About

Quick web Dasboard / REST API with Prometheus exporter


Languages

Language:Python 44.8%Language:HTML 29.7%Language:JavaScript 12.6%Language:Makefile 12.5%Language:CSS 0.3%