How prodigresser/project-4 works
Project type and purpose
• This is a Full‑Stack video‑streaming web application (“HowToTube”) built with a React front end, a Python/Flask back end, and a PostgreSQL database.
• Users can sign up/login, post videos, comment (nested replies), follow other users, and filter videos by genres.
File structure
• Top level: configuration files (.babelrc, webpack.config.js, Pipfile, Procfile) and package manifests (package.json, Pipfile).
• backend/ directory:
– app.py (Flask app entrypoint)
– controllers/ (Flask route handlers for users, videos, comments)
– models/ (SQLAlchemy ORM models + join tables for many‑to‑many relations)
– serializers/ (Marshmallow schemas for JSON in/out)
– middleware/secure_route.py (authentication guard)
– environment/config.py (environment‑specific settings)
– seed.py (database seeding script)
• frontend/ directory:
– index.html, App.js, index.js (React bootstrap)
– src/components/ (UI components for pages: Login, Signup, Video view, User profile, Navbar, etc.)
– src/lib/authentication.js (token handling)
– src/styles/ (Sass files)
README for additional insights
• RESTful API design connecting React → Flask endpoints → PostgreSQL via SQLAlchemy.
• Authentication via JWT + secure_route decorator.
• Mobile‑first responsive design via Sass.
• Deployment target: Heroku.
Detail without over‑splitting
• Join tables as connectors between core tables in the DB zone.