{"id":24979991,"url":"https://github.com/sajaltimilsina/moviecorn","last_synced_at":"2026-05-11T05:50:23.357Z","repository":{"id":202913428,"uuid":"708119236","full_name":"SajalTimilsina/moviecorn","owner":"SajalTimilsina","description":"MovieCorn React App, use custom hooks \u0026 comprehensive UI components. It includes functionalities such as movie search, detailed views, user ratings, and a watched movies summary","archived":false,"fork":false,"pushed_at":"2023-12-28T06:44:26.000Z","size":691,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T04:31:13.954Z","etag":null,"topics":["custom-hooks","localstorage","react","react-hooks","single-page-applications"],"latest_commit_sha":null,"homepage":"https://moviecorn13.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SajalTimilsina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-21T15:27:58.000Z","updated_at":"2023-12-28T06:48:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"54faae7f-ce40-4d86-b2f9-075d03b1b1cd","html_url":"https://github.com/SajalTimilsina/moviecorn","commit_stats":null,"previous_names":["sajaltimilsina/moviecorn"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SajalTimilsina%2Fmoviecorn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SajalTimilsina%2Fmoviecorn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SajalTimilsina%2Fmoviecorn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SajalTimilsina%2Fmoviecorn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SajalTimilsina","download_url":"https://codeload.github.com/SajalTimilsina/moviecorn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246168086,"owners_count":20734389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-hooks","localstorage","react","react-hooks","single-page-applications"],"created_at":"2025-02-04T04:29:03.328Z","updated_at":"2026-05-11T05:50:23.302Z","avatar_url":"https://github.com/SajalTimilsina.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MovieCorn 🍿React App\n\nThis repository houses the **MovieCorn React App**, a project designed and developed by Sajal Timilsina. MovieCorn utilizes **React** for its frontend architecture to create an interactive movie browsing and tracking platform.\n\n## Introduction\n\nMovieCorn is a single-page application (SPA) built using **React** and various custom hooks to access and display movie data fetched from the [OMDb API](https://www.omdbapi.com/). It allows users to search for movies, view details, rate them, and maintain a personal watch list.\n - Hosted on: https://moviecorn13.netlify.app/\n\n![image](https://github.com/SajalTimilsina/moviecorn/assets/19229631/a66a306e-c7e2-4b36-b351-d642aa58d618)\n\n\n## Getting Started\n\n### Installation\n\nTo run this application locally, follow these steps:\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/sajaltimilsina/moviecorn.git\n\n2. Navigate into the project directory:\n   \n   ```bash\n   cd moviecorn\n  \n3. Install dependencies:\n\n   ```bash\n   npm install\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n- `npm start`: Runs the app in development mode.\n- `npm run build`: Builds the app for production.\n- `npm test`: Launches the test runner.\n- `npm run eject`: Removes the single build dependency from the project.\n\n## Dependencies\n\nThe MovieCorn React App utilizes several key dependencies:\n\n- **React** and **React-DOM** for building the user interface.\n- **Create React App** to bootstrap the project.\n- **@testing-library** for testing components and interactions.\n- **gh-pages** for deploying the app to GitHub Pages.\n\n## Features\n\n### Custom Hooks\n\nThe application implements various custom hooks for managing state and handling specific functionalities:\n\n- **useMovies**: Fetches movie data from the OMDb API based on the user's query.\n- **useLocalStorageState**: Manages the state of watched movies, storing data in local storage.\n- **useKey**: Listens for specific key presses and triggers actions accordingly.\n\n### Components\n\nThe app is composed of several components responsible for rendering different parts of the user interface:\n\n- **NavBar**: Displays the application's navigation bar.\n- **Logo**: Renders the MovieCorn logo.\n- **Search**: Allows users to search for movies using a search input field.\n- **NumResults**: Shows the number of search results.\n- **Loader**: Indicates when data is loading.\n- **ErrorMessage**: Displays an error message if data fetching encounters issues.\n- **Main**: Main container for the app's content.\n- **MovieList**: Renders a list of movies based on the search query.\n- **MovieDetails**: Displays detailed information about a selected movie.\n- **WatchedSummary**: Shows summarized statistics about watched movies.\n- **WatchedMovieList**: Renders a list of watched movies.\n- **StarRating**: Enables users to rate movies using a star rating system.\n\n## Usage\n\nUpon launching the application, users can:\n\n- Search for movies using the search bar.\n- View a list of movies based on the search query.\n- Click on a movie to view its details, rate it, and add it to the watched list.\n- Access a summary of watched movies and their statistics.\n\n## Contributing\n\nContributions to MovieCorn are welcome! If you'd like to contribute, feel free to open pull requests or issues on the GitHub repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajaltimilsina%2Fmoviecorn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsajaltimilsina%2Fmoviecorn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajaltimilsina%2Fmoviecorn/lists"}