# Showy — Movies & Series Library Tracker **Showy** is a personal, single-user app for tracking the movies and TV series you watch. It pulls metadata from **TMDB**, keeps your library, watch history and ratings in **MySQL**, and runs as a web app or a **desktop app** (Electron, with a Tauri version in progress). --- ## Features - **Library** — add movies and shows from TMDB; favorites, hidden entries, watchlist; filter by type, genre, rating and year - **Entry pages** — full-bleed hero, trailer player, cast and crew, seasons (list or card view), where to watch, keywords, recommendations, budget/box office, certification and external links. Titles **not in your library** open on the same page from TMDB data, with *Add to Library* - **Artwork** — every TMDB poster, backdrop and logo for a title, merged with your local media, with one-click *Add* - **Watch tracking** — movies and episodes with exact/estimated/unknown dates, watch buddies, rewatches, season "mark all watched" (single date or spread over a range) - **Season & episode pages** — progress, *Continue* to the next unwatched episode, directors/writers, guest stars - **History** — everything you watched by year, as a list, a timeline, or a Spotify-style **Year in Review** - **Calendar** — upcoming episodes - **Collections** — TMDB collections and your own - **People** — cast and crew pages with filmography split into "in your library" and "not in library" - **Dashboard** — watch time, activity, genres, ratings and growth charts - **Discovery Videos** — a personal video vault linked to library entries - **In-app streaming** and a **command palette** (search, recently viewed, quick navigation) - **Maintenance** — background **TMDB refresh** of stale entries (rate limited), orphan media/people cleanup, duplicate credits, watch-status fixes --- ## Tech Stack | Layer | Technologies | |---|---| | Frontend | React 19, TypeScript, Vite 8, Tailwind CSS 4, Base UI (shadcn-style components), TanStack Query 5, Zustand 5, React Router 7, Recharts | | Backend | Node.js, Express 4, Sequelize 6, MySQL 8, Axios, Sharp, JWT auth | | Data | [TMDB API v3](https://developer.themoviedb.org/) (rate limited, proxied by the backend) | | Desktop | Electron 45 (`electron/`); Tauri v2 in progress on the `feat/tauri-app` branch | --- ## Project Structure ``` Showy/ ├── backend/ # Express + Sequelize API (models, routes, controllers, services, mappers) │ ├── config/ # DB connection, relations, startup migrations, data seeding │ └── settings.json # Runtime settings (TMDB key, ports, auth) — copy from settings.json.example ├── react_frontend/ # React + Vite frontend (the current UI) ├── electron/ # Electron desktop shell ├── docs-vault/ # Project documentation (Obsidian vault) — start at Index.md ├── frontend/ # Legacy Angular frontend (still used by docker-compose) └── docker-compose.yml ``` --- ## Getting Started ### Prerequisites - Node.js 18+ and **pnpm** - MySQL 8 with a database named `Showzy` (connection settings in `backend/config/database.js`) - A TMDB API key ### 1. Backend ```bash cd backend pnpm install cp settings.json.example settings.json # then set tmdbApiKey, userDataPath, authPassword, jwtSecret pnpm dev # http://localhost:4000/api/v1 ``` On start the backend syncs the schema and runs `config/migrations.js`, which adds any new columns to an existing database (additive only). ### 2. Frontend ```bash cd react_frontend pnpm install pnpm dev # http://localhost:4200 ``` The Vite dev server proxies `/api` to the backend; change the `proxy.target` in `vite.config.ts` to point at `http://localhost:4000` for local development. ### 3. Desktop app (optional) ```bash cd electron pnpm install pnpm build-front # builds the frontend into electron/frontend_build pnpm start ``` See [`docs-vault/Electron.md`](docs-vault/Electron.md) for packaging. The Tauri version lives in `tauri/` on the `feat/tauri-app` branch (see its `tauri/README.md`). ### Docker `docker-compose up --build` starts MySQL, the backend (port 4000) and the **legacy Angular** frontend (port 3000). The React frontend isn't in Docker yet. --- ## Documentation Detailed docs live in [`docs-vault/`](docs-vault/Index.md) — architecture, API reference, database models, TMDB integration, every page and feature, and known issues. --- ## Contact - **Mohammed Abad**: [mohammedabad.me@gmail.com](mailto:mohammedabad.me@gmail.com) - **GitHub**: [X4Lo](https://github.com/X4Lo) Data provided by [TMDB](https://www.themoviedb.org/). This product uses the TMDB API but is not endorsed or certified by TMDB.