A React-based movie application that allows users to search for movies, view details, find streaming providers, and save favorites.
- Search for movies using the TMDB API
- View movie details including trailers and ratings
- See where to watch movies (streaming providers) by region
- Add movies to favorites
- Responsive design for all devices
- Node.js (v14.0.0 or later)
- Clone the repository:
git clone https://github.com/Mherr162/React-App.git
- Install dependencies:
npm install
-
Set up environment variables:
- Install dotenv dependency using the following command
npm install dotenv --save
- Create
.env
file in root dir and add it to the.gitignore
file - Edit the
.env
file and add your TMDB API key - You can get your API key by creating an account at https://www.themoviedb.org/ and going to Settings > API
-
Start the development server:
npm run dev
- Open your browser and navigate to http://localhost:5173
This project uses environment variables to store sensitive data. To set up your environment:
- Create a
.env
file in the root directory of the project - Add your TMDB API key to the file in this format:
VITE_TMDB_API_KEY=your_api_key_here
Note: The .env
file should never be committed to the repository. It's already added to .gitignore
to prevent accidental commits.
To create a production build:
npm run build
- React
- React Router
- Vite
- TMDB API
- CSS (custom styling)
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add some amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
This project is licensed under the MIT License