A movie search application built with Next.js, Tailwind CSS, and DaisyUI. This application allows users to search for movies using the OMDb API, displays results with pagination, and provides a clean and modern user interface.
- Search for movies by title using the OMDb API.
- Paginate results to display 8 movies per page.
- Responsive design optimized for both mobile and desktop views.
- Utilizes Tailwind CSS and DaisyUI for styling and component design.
- Next.js: A React framework for server-side rendering and static site generation.
- Tailwind CSS: A utility-first CSS framework for styling.
- DaisyUI: A component library for Tailwind CSS that provides pre-styled components.
- Axios: A promise-based HTTP client for making API requests.
-
Clone the repository:
git clone https://github.com/Azizkhasyi11/movie-search.git
-
Navigate to the project directory:
cd movie-search-app
-
Install dependencies:
npm install
-
Set up environment variables:
Create a
.env.local
file in the root of the project and add your OMDb API key:NEXT_PUBLIC_API_KEY=your_omdb_api_key
-
Run the development server:
npm run dev
The application will be available at
http://localhost:3000
.
-
Search for movies:
- Enter a movie title in the search input field and click the "Search" button.
- The application will display search results with movie posters, titles, types, and release years.
-
Navigate through pages:
- Use the pagination controls to navigate between pages of results.
If you want to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Make your changes and commit them (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Create a new Pull Request.