Code Monkey home page Code Monkey logo

dashboard's Introduction

Welcome to the Machine Learning Dashboard!

A end to end project from data collection to putting a machine learning model into production. The application is available at flavia-dashboard.herokuapp.com.

Home Page

Dashboard Features

  • SQLite, PostgreSQL, SQLAlchemy ORM
  • Alembic (DB schema migrations)
  • Modular design with Blueprints
  • Session-Based authentication (via flask_login)
  • Forms validation
  • Deployment scripts: Docker

Product technology stack


How to use it

$ # Get the code
$ git clone https://github.com/flaviassantos/dashboard.git
$ cd dashboard
$
$ # Virtualenv modules installation (Unix based systems)
$ virtualenv --no-site-packages venv
$ source venv/bin/activate
$
$ # Virtualenv modules installation (Windows based systems)
$ # virtualenv --no-site-packages venv
$ # .\venv\Scripts\activate
$
$ # Install modules
$ pip install -r requirements.txt
$
$ # Set the FLASK_APP environment variable
$ (Unix/Mac) export FLASK_APP=dashboard.py
$ (Windows) set FLASK_APP=dashboard.py
$ (Powershell) $env:FLASK_APP = ".\dashboard.py"
$
$ # Start the application
$ flask run
$
$ # Access the monitor in browser: http://127.0.0.1:5000/

Docker

The documentation is available on Docker hub. If you have docker installed, you can test the code locally with:

$ docker pull flaviassantos/dashboard:latest

$ docker build -t dashboard:latest .

$ docker run --name dashboard -d -p 8000:5000 --rm -e SECRET_KEY=my-secret-key \
    -e MAIL_SERVER=smtp.googlemail.com -e MAIL_PORT=587 -e MAIL_USE_TLS=true \
    -e MAIL_USERNAME=<email@gmail> -e MAIL_PASSWORD=<email-password> \
    --link mysql:dbserver \
    -e DATABASE_URL=mysql+pymysql://dashboard:<database-password>@dbserver/dashboard 
    --link elasticsearch:elasticsearch 
    -e ELASTICSEARCH_URL=http://elasticsearch:9200 dashboard:latest

The application is then available on http://127.0.0.1:5000/ in your web browser.


@misc{Flavia: 2020,
  Author = {Flavia Santos},
  Title = {Oslo Bysykkel Monitor},
  Year = {2020},
  Publisher = {GitHub},
  Journal = {GitHub repository},
  Howpublished = {\url{https://github.com/flaviassantos/oslo-bysykkel-monitor.git}}
}

dashboard's People

Contributors

flaviassantos avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Forkers

jleeoslo

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.