How hnam61617-art/mini-netflix works
Mini-Netflix is a Flask streaming-platform demo backed by MySQL, with an offline, provenance-aware dataset build. The user workflow is browsing and filtering titles, viewing details and episodes, managing profiles and watch history, and—after selecting a simulated subscription—recording progress or starting a play session. Separate management and reporting capabilities cover catalog edits, lookups, and SQL reports. The graph preserves the documented data-ingestion and database-init stages; unsampled app internals are represented only where README or excerpts support them.
Main entry points: init_db.py Database initializer · build_sources.py Provenance ETL · raw Source snapshots · app.py Flask application
Components 17
Source data
- Source snapshots
datasets/raw - TVmaze fetch
scripts/fetch_episode_sources.py - Provenance ETL
scripts/build_sources.py - Generated provenance
datasets/generated
MySQL database
- Database seed
sql/02_seed.sql - Database initializer
scripts/init_db.py - Schema and rules
sql/01_schema.sql - MySQL
Consumer experience
- Flask application
demo/app.py - Consumer pages
demo/consumer.py - Accounts and profiles
demo/accounts.py - Catalog browsing
demo/catalog.py
Management and reports
- Catalog management
demo/management.py - Management lab
demo/lab.py - SQL reports
sql/03_queries.sql - Subscription renewal worker
scripts/process_renewals.py
Other components
- Viewer
Connections 18
- Viewer → Flask application: uses
README.md - Source snapshots → Provenance ETL: transforms
README.md - TVmaze fetch → Source snapshots: updates snapshots
scripts/fetch_episode_sources.py - Provenance ETL → Generated provenance: writes provenance
scripts/build_sources.py - Provenance ETL → Database seed: rebuilds seed
README.md - Database initializer → Schema and rules: executes
scripts/init_db.py - Database initializer → Database seed: executes
scripts/init_db.py - Database initializer → MySQL: initializes
scripts/init_db.py - Flask application → MySQL: reads and writes
- Viewer → Consumer pages: browses titles
README.md - Viewer → Accounts and profiles: manages profiles
README.md - Viewer → Catalog browsing: searches and views
README.md - Viewer → Catalog management: edits catalog
README.md - Catalog management → MySQL: stores catalog
- Viewer → Management lab: runs lookups
README.md - Management lab → MySQL: queries data
- SQL reports → MySQL: reports from
README.md - Subscription renewal worker → MySQL: processes renewals
scripts/process_renewals.py