GithubHelp home page GithubHelp logo

plex-mysql-flask's Introduction

plex-mysql-flask

These scripts will create a connection to a backend MySQL database containing Plex data about movies I own and serve that data up in a datatable front-end.

To begin perform the following -

  • Clone the repo
  • Change into the directory of the repo and install the requirements via pip -
    • pip install -r requirements.txt
  • Set the environment variables listed below. These variables describe the connection to MySQL -
    • mysql_username
    • mysql_password
    • mysql_db
    • mysql_ip
    • mysql_port
    • mysql_table
  • Start the production WSGI server waitress -
    • python waitress_server.py 2&1> /dev/null &

The MySQL table schema

In order for the datatable to render properly, the following schema must be used -

Column Type Null Key
movie_title varchar(200) No PRI
movie_year varchar(4) No PRI
movie_rating varchar(100) Yes
movie_resolution varchar(100) Yes
movie_container varchar(25) Yes
movie_director varchar(1000) Yes
movie_genre varchar(1000) yes

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.