Skip to content

This project is a simple movie search app built using React. The app allows users to search for movies or actors, view a list of movie results, sort the results based on different criteria, and view detailed information about each movie.

netdevmike/react-movie-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movie Search App

This project is a simple movie search app built using React. The app allows users to search for movies or actors, view a list of movie results, sort the results based on different criteria, and view detailed information about each movie.

Features

  • Search for movies or actors
  • Display a list of movie results with posters
  • Sort results by relevance, year, or alphabetical order
  • View detailed information about each movie, including the title, year, genre, director, actors, and plot summary

How it works

The app uses the OMDb API to fetch movie data based on the user's search query. It fetches data by making requests to the API using the provided API key.

The main components of the app are as follows:

  • MovieSearch: The main component that contains the search form, sort dropdown, and the movie list.
  • SearchForm: A form that allows users to enter their search query and submit it.
  • SortDropdown: A dropdown that allows users to select the sort criteria for the displayed movie results.
  • MovieList: A component that displays the list of movie results, and manages the selected movie details.
  • MovieDetailsPanel: A component that displays the detailed information about a selected movie.

The app uses React Router to manage the routes and display the components accordingly.

Usage

  1. Clone the repository.
  2. Install the required dependencies using npm install or yarn install.
  3. Start the development server using npm start or yarn start.
  4. Open a web browser and navigate to http://localhost:3000 to access the app.
  5. Enter a search query in the search form and press the "Search" button to fetch movie data.
  6. Use the sort dropdown to change the sort criteria for the displayed movie results.
  7. Click on a movie result to view its detailed information in a popup panel.

Dependencies

  • React
  • React Router
  • OMDb API

Additional Information from React

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

This project is a simple movie search app built using React. The app allows users to search for movies or actors, view a list of movie results, sort the results based on different criteria, and view detailed information about each movie.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published