CineStream is a web-based application that allows users to browse and stream movies. It integrates with the CineStream API via RapidAPI, providing access to movie data, including genres, popular movies, and movie details, with options to search and filter by genre.
- Watch Movies: Stream and enjoy movies within the application.
- Browse Movies by Genre: View and filter movies by genres with a responsive layout.
- Search Functionality: Search for movies based on user input.
- Detailed Movie Pages: See comprehensive information for each movie, including description, release date, rating, and runtime.
- Responsive Design: Optimized for mobile and desktop.
- Frontend: PHP, HTML, CSS (Bootstrap)
- Backend: RapidAPI (for fetching movie data)
- API: CineStream API (via RapidAPI)
To get a local copy of CineStream running, follow these steps:
-
Clone the repository:
git clone https://github.com/hamashyah/Cinestream.git cd Cinestream
-
Install Composer Dependencies:
Run Composer to install the necessary PHP packages.composer install
-
**Set Up Environment Variables: You can use the default API Key provided in the .env file, or create your own by signing up on RapidAPI at CineStream API (recommended)https://rapidapi.com/dataforge-dataforge-default/api/cinestream-api (Is free) To set it up, add a .env file in the root directory with the following variable:
API_KEY=your_rapidapi_key
-
Run a Local Server:
Use PHP’s built-in server or a local server environment like XAMPP or MAMP.
Example command:php -S localhost:8000
-
Access the App:
Go to http://localhost:8000 in your browser.
- Browse Movies: The home page lists popular movies and provides genre filters.
- Search: Use the search bar to find movies by title.
- View Movie Details: Click on a movie to view detailed information on a dedicated page and watch the movie.
CineStream integrates with the CineStream API via RapidAPI to fetch movie data. Below are the main API requests made in the application:
- Popular Movies:
Request popular movies by default on the main page. - Genres:
Fetches genres to allow users to filter by movie genre. - Search:
Searches movies based on user queries entered in the search bar. - Movie Details:
Provides details for individual movies, including an embedded player. -Watch Movie Create a player with the selected movie.
API requests are handled by PHP functions like fetchAPI()
, which manage GET requests using cURL with the RapidAPI key.
Contributions are welcome! To contribute:
- Fork the project.
- Create a feature branch (
git checkout -b feature/YourFeature
). - Commit changes (
git commit -m 'Add YourFeature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.