Giter Site home page Giter Site logo

cloudxtreme / flask-server-panel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sepro/flask-server-panel

0.0 0.0 0.0 1.27 MB

Server panel based on flask to show stats for a small private server

License: MIT License

Dockerfile 0.92% Python 49.98% JavaScript 47.06% CSS 0.57% HTML 1.46%

flask-server-panel's Introduction

Build Status codecov.io

Flask-Server-Panel and API

Server panel based on flask to show stats for a small private server. Designed specifically with a Raspberry Pi running Pi-Hole in mind.

The API that is queried by the front-end is located at <your_url>/api/. For details check out the API documentation.

The back-end is based on Python Flask with a front-end using React.js and Bootstrap

Flask-Server-Panel

Note: The Raspberry Pi logo changes color along with the temperature. Green is good, red means you have to invest in a new case with better cooling.

Getting started

Installation instruction for deployment on a linux system.

Clone the repository

git clone https://github.com/sepro/Flask-Server-Panel.git Flask-Server-Panel

Set up a virtual environment

cd Flask-Server-Panel
virtualenv --python=python3 venv

Activate the environment and install packages

source venv/bin/activate
pip install -r requirements.txt

Configure Flask-Server-Panel

vim config.py

Run tests and run app

python tests.py

python run.py

Deploy (on x86_64, not rPi!) using Docker

In case you would like to test the panel, a docker container is available. Do note that you will get stats from within the container and not the host system. However, for trying out the app this is the quickest way to get things running.

docker pull sepro/flask-server-panel
docker run -p 80:80 -d sepro/flask-server-panel

This exposes gunicorn running in the container on port 80 to port 80 on the host system.

Developing the front-end

Install all packages through npm

npm install

Build ./serverpanel/static/js/bundle.js using webpack

webpack -p

flask-server-panel's People

Contributors

sepro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.