A modern, responsive movie app built with SvelteKit and Tailwind CSS.
Notice:
If you see a red alert at the top of the app stating:
Notice: For live movie data, please provide your TMDB API key. You are currently viewing mock data. Enter a valid TMDB key to enable real-time content.
This means the app is running in mock mode. To enable real-time movie data, you must provide your own TMDB API key (see below).
It features:
npm install
cp .env.example .env
Then edit .env
and replace your_tmdb_api_key_here
with your actual API key. Without a valid key, the app will show mock data and a prominent red notice at the top of the home page.
You can get your TMDb API key from The Movie Database (TMDb).
npm run dev
Open the app, browse Popular/Recommended, adjust filters, and click any card for details.
If you see a red alert about the TMDB key, follow the instructions above to enable live data.
npm run dev
- Start the development servernpm run build
- Build for productionnpm run preview
- Preview the production buildnpm run test
- Run testsnpm run lint
- Lint the codenpm run format
- Format the code with Prettiersrc/
├── lib/
│ ├── api/ # TMDb API integration
│ ├── components/ # Reusable Svelte components
│ └── stores/ # Svelte stores for state management
├── routes/
│ ├── +page.svelte # Home page
│ ├── favorites/ # Favorites page
│ └── title/[type]/[id]/ # Movie/TV details page
└── app.html # Main app template
/
– Home page with Popular and Recommended movies/favorites
– Your saved favorite movies/title/[type]/[id]
– Details page for movies or TV showsData provided by The Movie Database (TMDb). This product uses the TMDb API but is not endorsed or certified by TMDb.