Get Started in 5 Minutes
This guide will help you set up Popcorn Vision locally and browse movies and TV shows in no time.Clone the Repository
First, clone the Popcorn Vision repository to your local machine:
Fork First? If you plan to contribute, fork the repository on GitHub first, then clone your fork instead.
Set Up Environment Variables
Copy the example environment file and configure your API credentials:Now, open
.env and add your TMDB API credentials:.env
Getting Your TMDB API Credentials
How to get TMDB API Key
How to get TMDB API Key
- Go to The Movie Database (TMDB)
- Create a free account or sign in
- Navigate to Settings → API
- Request an API key by selecting “Developer”
- Fill out the application form (choose “Website” or “Personal” for type)
- Copy your API Key (v3 auth) and API Read Access Token (v4 auth)
- Paste them into your
.envfile
Start the Development Server
Launch the Next.js development server:You should see output similar to:
Access the Application
Open your browser and navigate to:You’ll see the Popcorn Vision homepage with:
- Hero Slider: Featuring trending movies/TV shows
- Now Playing: Currently available content
- Upcoming: Future releases
- Top Rated: Highly-rated content
- Trending: What’s popular this week
- Genre Sections: Horror, Comedy, Sci-Fi, and more

What’s Next?
Now that you have Popcorn Vision running, here’s what you can explore:Browse Movies
Explore the extensive movie database with detailed information, trailers, and cast details
Discover TV Shows
Track your favorite series with season and episode information
Use Advanced Search
Filter content by genre, release date, streaming platform, actors, and more
Login with TMDB
Authenticate to save favorites, create watchlists, and rate content
Code Overview
Here’s how the homepage fetches and displays content:src/app/page.js
src/lib/axios.js
Troubleshooting
API requests failing
API requests failing
- Verify your
API_KEYandAPI_READtokens are correct in.env - Ensure you’ve copied
.env.exampleto.env - Check that your TMDB API key is active (newly created keys are instant)
- Restart the dev server after changing environment variables
Images not loading
Images not loading
The image URLs in
.env are pre-configured. If images aren’t loading:- Check your internet connection
- Verify the TMDB API is responding correctly
- Open browser DevTools and check the Network tab for 404 errors
pnpm command not found
pnpm command not found
Install pnpm globally:Or use npx:
For detailed installation instructions and advanced configuration, see the Installation Guide.