How harshalborde17/movie-recommendation-system works
This is a movie scraping, storage, and search application. Users browse a JavaScript frontend that requests movie listings and details, with search, filters, sorting, pagination, statistics, and CSV export served by FastAPI. A separate scraper downloads permitted source pages, parses and normalizes movie records, then imports them into SQLite; sample data can also be seeded. The graph distinguishes API routing, persistence logic, and database modeling. Scraper-to-database and frontend-to-API relationships are shown where the excerpts support them; unsampled implementation details are omitted.
Main entry points: routes.py REST endpoints · crud.py Movie operations · database.py SQLite database · seed.py Sample-data seeder
Components 12
User experience
- Interactive frontend
frontend/script.js
API and domain
- Application setup
app/main.py - REST endpoints
app/routes.py - Movie schemas
app/schemas.py
Persistence
- Movie operations
app/crud.py - Movie model
app/models.py - SQLite database
app/database.py
Data ingestion
- Scrape and normalize
app/scraper.py - Sample-data seeder
app/seed.py - Sample movie records
data/sample_movies.json
Other components
- Movie browser
- Movie source site
Connections 20
- Movie browser → Interactive frontend: uses
README.md - Interactive frontend → REST endpoints: fetches API
frontend/script.js - Application setup → REST endpoints: registers routes
app/main.py - Application setup → SQLite database: creates tables
app/main.py - Application setup → Interactive frontend: serves static UI
app/main.py - REST endpoints → Movie operations: calls
app/routes.py - REST endpoints → SQLite database: gets sessions
app/routes.py - REST endpoints → Movie model: queries
app/routes.py - REST endpoints → Movie schemas: validates responses
app/routes.py - Movie operations → Movie model: queries and writes
app/crud.py - Movie operations → Movie schemas: accepts movie data
app/crud.py - Movie model → SQLite database: uses base
app/models.py - Movie source site → Scrape and normalize: provides HTML
app/scraper.py - Scrape and normalize → Movie operations: imports records
app/scraper.py - Scrape and normalize → SQLite database: opens session
app/scraper.py - Scrape and normalize → Movie schemas: builds movie input
app/scraper.py - Sample-data seeder → Sample movie records: loads records
app/seed.py - Sample-data seeder → Movie operations: imports records
app/seed.py - Sample-data seeder → SQLite database: opens session
app/seed.py - Sample-data seeder → Movie schemas: builds movie input
app/seed.py