Experimento AI full vibe coded con Bolt.new.
La webapp es para ver en qué plataforma está disponible el contenido buscado según la región del usuario. Just Watch hace eso, re bien, pero me avivé después de que hice esto xD.
Le iré agregando cosas como un ser humano pero a la hora de escribir esto no escribí ni leí una sola línea de código.
Lo único que hice fue sacarme una API key en TMDB y meterla como secret para que la usen unas edge functions onda backend en Netlify porque la IA me dijo que así no queda expuesta client side si la metía como env var (.env/Secrets) en el código del frontend 🧞. Piola eso 👍.
Lo piola es que el stack es re mi go-to: TS + Vite + TailwindCSS + ... y bue React.
- Meter captcha!!❗
- Arreglar mobile.
- Link a Stremio!!! (en todas).
- Sacar esas regiones "populares" cipayas. Poner al campeón del mundo arriba de todo 🇦🇷.
- Usar más data que trae la request.. si pinta algo interesante.
- Agregar créditos abajo "made with <3 and AI" kindofshit (link acá).
- Traducir lo que viene de la API si está en ES porque TMDB me trae en EN (capaz hay otro query o endpoint para pedir traducciones?)
- Meter mejores analytics??
- flasharla..
A beautiful web application to discover where to watch your favorite movies and TV shows across all streaming platforms.
- 🔍 Search for movies and TV shows
- 🌍 Support for all countries and regions
- 📺 Comprehensive streaming provider information
- 🎬 Rich content details with cast, ratings, and descriptions
- 📱 Responsive design with modern UI
- 🔒 Secure API key management with serverless functions
- Node.js 18+
- A TMDB API key (free registration required)
- Go to TMDB and create a free account
- Navigate to your account settings
- Go to the "API" section
- Request an API key (choose "Developer" for personal use)
- Copy your API key
-
Clone the repository
-
Install dependencies:
npm install
-
Install Netlify CLI for local development:
npm install -g netlify-cli
-
Create a
.envfile in the root directory and add your TMDB API key:TMDB_API_KEY=your_actual_api_key_here -
Start the development server with Netlify functions:
netlify dev
This will start both the frontend and the serverless functions locally.
-
Connect your repository to Netlify:
- Go to Netlify
- Click "New site from Git"
- Connect your GitHub/GitLab repository
-
Configure build settings:
- Build command:
npm run build - Publish directory:
dist - Functions directory:
netlify/functions
- Build command:
-
Add your API key as an environment variable:
- In your Netlify dashboard, go to Site Settings → Environment Variables
- Add a new variable:
- Key:
TMDB_API_KEY - Value: Your TMDB API key
- Key:
-
Deploy your site:
- Netlify will automatically build and deploy your site
- Your serverless functions will be available at
/.netlify/functions/
-
Connect your repository to Vercel:
- Go to Vercel
- Import your repository
-
Add environment variable:
- In your Vercel dashboard, go to Project Settings → Environment Variables
- Add:
- Name:
TMDB_API_KEY - Value: Your TMDB API key
- Name:
-
Create Vercel functions:
- Create an
apifolder in your project root - Move the functions from
netlify/functionstoapifolder - Update the function format for Vercel (if needed)
- Create an
For any other hosting provider that supports serverless functions:
- Set the environment variable
TMDB_API_KEYwith your API key - Configure the serverless functions according to your provider's requirements
- Build and deploy the application
This application uses a secure serverless architecture:
- Frontend: React + TypeScript + Tailwind CSS
- Backend: Netlify Edge Functions (serverless)
- API: TMDB API (accessed securely through backend functions)
- ✅ API key is stored securely as an environment variable
- ✅ API key is never exposed to the client-side code
- ✅ All TMDB API calls are proxied through secure serverless functions
- ✅ CORS headers properly configured
- ✅ Error handling and validation
The application creates three serverless functions:
/.netlify/functions/tmdb-search- Search for movies and TV shows/.netlify/functions/tmdb-movie- Get movie details and streaming providers/.netlify/functions/tmdb-tv- Get TV show details and streaming providers
# Install Netlify CLI globally
npm install -g netlify-cli
# Start local development server with functions
netlify devThis will start:
- Frontend development server on
http://localhost:8888 - Serverless functions at
http://localhost:8888/.netlify/functions/
You can test the functions directly:
# Search for content
curl "http://localhost:8888/.netlify/functions/tmdb-search?query=breaking%20bad"
# Get movie details
curl "http://localhost:8888/.netlify/functions/tmdb-movie?id=550"
# Get TV show details
curl "http://localhost:8888/.netlify/functions/tmdb-tv?id=1396"⚠️ Never commit your.envfile to version control- ✅ The
.envfile is already included in.gitignore - ✅ Use environment variables for all sensitive configuration
- ✅ API calls are made server-side to protect your API key
- ✅ Client-side code never has access to the API key
This application uses the TMDB API through secure serverless functions for:
- Movie and TV show search
- Content metadata (cast, ratings, descriptions, etc.)
- Streaming provider availability by region
This project is for educational and personal use. Please respect TMDB's terms of service when using their API.