{"id":31424846,"url":"https://github.com/lassestilvang/stream2","last_synced_at":"2026-04-09T06:43:39.236Z","repository":{"id":316754008,"uuid":"1064326748","full_name":"lassestilvang/stream2","owner":"lassestilvang","description":"A modern, professional web application for tracking watched movies and TV shows, and managing a watchlist. Built with Next.js 15 (App Router), TypeScript, Tailwind CSS, shadcn/ui, Zustand, Neon PostgreSQL, Drizzle ORM, Upstash Redis, Jest, and Playwright.","archived":false,"fork":false,"pushed_at":"2025-12-26T11:00:41.000Z","size":891,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-27T22:43:47.446Z","etag":null,"topics":["drizzle-orm","jest","neon","neon-postgres","neondb","nextjs","playwright","pnpm","postgresql","react","redis","shadcn-ui","tailwindcss","tmdb","tmdb-api","typescript","upstash","vercel","zustand"],"latest_commit_sha":null,"homepage":"https://stream2-zeta.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lassestilvang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-25T21:45:25.000Z","updated_at":"2025-12-26T10:59:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"70b538d0-ec94-4ef3-82c5-63b7e848ef6a","html_url":"https://github.com/lassestilvang/stream2","commit_stats":null,"previous_names":["lassestilvang/stream2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lassestilvang/stream2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lassestilvang%2Fstream2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lassestilvang%2Fstream2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lassestilvang%2Fstream2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lassestilvang%2Fstream2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lassestilvang","download_url":"https://codeload.github.com/lassestilvang/stream2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lassestilvang%2Fstream2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28131095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-30T02:00:05.476Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drizzle-orm","jest","neon","neon-postgres","neondb","nextjs","playwright","pnpm","postgresql","react","redis","shadcn-ui","tailwindcss","tmdb","tmdb-api","typescript","upstash","vercel","zustand"],"created_at":"2025-09-30T04:06:29.921Z","updated_at":"2026-04-09T06:43:39.225Z","avatar_url":"https://github.com/lassestilvang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Movie/TV App\n\nA modern, professional web application for tracking watched movies and TV shows, and managing a watchlist. Built with Next.js 15 (App Router), TypeScript, Tailwind CSS, shadcn/ui, Zustand, Neon PostgreSQL, Drizzle ORM, Upstash Redis, Jest, and Playwright.\n\n## Features\n\n*   **Search:** Discover movies and TV shows using the TMDB API.\n*   **Watched Content:** Track what you've watched with date, rating, and notes.\n*   **Watchlist:** Maintain a list of content you want to watch.\n*   **Authentication:** Secure user authentication using NextAuth.js with Drizzle Adapter for Neon and Upstash Redis for sessions.\n*   **Responsive Design:** Optimized for various screen sizes with light/dark theme support.\n*   **Visual Feedback:** Loading states, error handling, and animations.\n\n## Tech Stack\n\n*   **Framework:** Next.js 15 (App Router)\n*   **Language:** TypeScript\n*   **Styling:** Tailwind CSS, shadcn/ui\n*   **State Management:** Zustand\n*   **Database:** Neon PostgreSQL\n*   **ORM:** Drizzle ORM\n*   **Session Management:** Upstash Redis\n*   **Package Manager:** pnpm\n*   **Testing:** Jest (Unit), Playwright (E2E)\n*   **Deployment:** Vercel\n\n## Getting Started\n\nFollow these instructions to set up and run the project locally.\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/your-username/my-movie-app.git\n```\n\n### 2. Install Dependencies\n\n```bash\npnpm install\n```\n\n### 3. Environment Variables\n\nCreate a `.env.local` file in the root of your project and add the following environment variables:\n\n```\n# TMDB API Key\nNEXT_PUBLIC_TMDB_API_KEY=YOUR_TMDB_API_KEY\n\n# Neon PostgreSQL Database URL\nNEON_DATABASE_URL=YOUR_NEON_DATABASE_URL\n\n# NextAuth.js Secret\nAUTH_SECRET=YOUR_AUTH_SECRET\nAUTH_URL=http://localhost:3000\n\n# GitHub OAuth\nGITHUB_ID=YOUR_GITHUB_ID\nGITHUB_SECRET=YOUR_GITHUB_SECRET\n\n# Upstash Redis for NextAuth.js sessions\nUPSTASH_REDIS_REST_URL=YOUR_UPSTASH_REDIS_REST_URL\nUPSTASH_REDIS_REST_TOKEN=YOUR_UPSTASH_REDIS_REST_TOKEN\n```\n\n*   **`NEXT_PUBLIC_TMDB_API_KEY`**: Get your API key from [TMDB](https://www.themoviedb.org/documentation/api).\n*   **`NEON_DATABASE_URL`**: Your connection string for the Neon PostgreSQL database.\n*   **`AUTH_SECRET`**: A random string used to sign and encrypt the session cookie. You can generate one using `openssl rand -base64 32`.\n*   **`AUTH_URL`**: The URL of your application (e.g., `http://localhost:3000`).\n*   **`GITHUB_ID`**, **`GITHUB_SECRET`**: Create a new OAuth application on [GitHub](https://github.com/settings/applications/new). Set the callback URL to `http://localhost:3000/api/auth/callback/github`.\n*   **`UPSTASH_REDIS_REST_URL`**, **`UPSTASH_REDIS_REST_TOKEN`**: Get these from your [Upstash Redis](https://upstash.com/) dashboard.\n\n### 4. Database Setup\n\nRun Drizzle migrations to create the necessary tables in your Neon database:\n\n```bash\npnpm run db:push\n```\n\n### 5. Run the Development Server\n\n```bash\npnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) in your browser.\n\n## Testing\n\n### Unit Tests (Jest)\n\n```bash\npnpm run test\npnpm run test:watch # Run tests in watch mode\n```\n\n### End-to-End Tests (Playwright)\n\n```bash\npnpm run test:e2e\npnpm run test:e2e:ui # Run tests with Playwright UI\n```\n\n## Deployment\n\nThis project is configured for deployment on [Vercel](https://vercel.com/). Ensure your environment variables are configured in your Vercel project settings.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flassestilvang%2Fstream2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flassestilvang%2Fstream2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flassestilvang%2Fstream2/lists"}