.env file in the root directory:TMDB_API_KEY ā Your TMDB API keyTMDB_IMAGE_URL ā Base URL for TMDB images (e.g., https://image.tmdb.org/t/p/w500)PORT ā Port for the server (default: 3000).env file:/api and handled by Express (routes/tmdbApi.js).GET /api/trending-movies ā Trending moviesGET /api/trending-tv ā Trending TV showsGET /api/upcoming-movies ā Upcoming moviesGET /api/movie/:id ā Movie detailsGET /api/tv/:id ā TV show details (with episodes)GET /api/movies-list/:page ā Paginated movies listGET /api/tv-list/:page ā Paginated TV shows listGET /api/search-movies/:query/:page ā Search moviesGET /api/search-tv/:query/:page ā Search TV showspnpm lint)Posted Jul 23, 2025
Developed Stream-Flix, a modern streaming site using Next.js, Express, and TMDB API.
0
0