{"id":19057587,"url":"https://github.com/pktcodes/movie-db-react-project","last_synced_at":"2025-02-22T01:41:41.605Z","repository":{"id":41371594,"uuid":"509317533","full_name":"pktcodes/movie-db-react-project","owner":"pktcodes","description":"Movie Database Project using React","archived":false,"fork":false,"pushed_at":"2022-08-15T16:51:37.000Z","size":448,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T11:44:29.679Z","etag":null,"topics":["api","context-api","css3","custom-hooks","ecmascript6","html5","javascript","movie-database","moviedb-api","react","react-hooks","react-router-v6","usecontext","useeffect","usefetch","usestate"],"latest_commit_sha":null,"homepage":"https://react-movie-db-prod.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/pktcodes.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}},"created_at":"2022-07-01T04:16:19.000Z","updated_at":"2022-07-15T23:15:05.000Z","dependencies_parsed_at":"2022-07-30T07:48:05.329Z","dependency_job_id":null,"html_url":"https://github.com/pktcodes/movie-db-react-project","commit_stats":null,"previous_names":["pktcodes/movie-db-react-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fmovie-db-react-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fmovie-db-react-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fmovie-db-react-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fmovie-db-react-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pktcodes","download_url":"https://codeload.github.com/pktcodes/movie-db-react-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240113944,"owners_count":19749829,"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":["api","context-api","css3","custom-hooks","ecmascript6","html5","javascript","movie-database","moviedb-api","react","react-hooks","react-router-v6","usecontext","useeffect","usefetch","usestate"],"created_at":"2024-11-08T23:58:14.179Z","updated_at":"2025-02-22T01:41:41.583Z","avatar_url":"https://github.com/pktcodes.png","language":"JavaScript","readme":"# Movie DB 🎥\n\n\u003e PROD [Live] : https://react-movie-db-prod.netlify.app/\n\n#### Movie DB consists of a straight forward user interface where there is a\n- List of movies by default is set to batman, a search form to query for specific movies as we are typing.\n- To get more details of a specific movie in the list, click on any **movie poster** which is set to route to another page where it shows the movie info along with a *Back to Movies* button to come back to **Homepage**.\n- For each page render the **Loading** animation has been implemented and unknown route URLs are handled by the **error** message coming from API.\n- When a query doesn't have any movies matching, it still shows the old list but it shows an **error** message below the search form and API handles it.\n- To run the project locally, clone the repo, `npm install` to install the dependencies and `npm start` to start up the development server on default port 3000.\n\n#### Languages\n\nHTML, CSS, JavaScript, ECMAScript, React ~ Context API - Hooks ~ useState, useEffect, useFetch Custom Hook, React Router 6\n\n#### API\n\nhttps://www.omdbapi.com/\n\n#### Deployment / Hosting\n\nNetlify\n\n---\n\n#### React Router Fix\n\nThe routing implemented using react-router-dom to work properly on the server side after it has been continuous deployed on Netlify, [\\_redirects](https://github.com/praveen-1995/movie-db-react-project/blob/42cea680883d356f6b9f586381b547d05f333d02/public/_redirects) is added. For more info - [Fix](https://dev.to/dance2die/page-not-found-on-netlify-with-react-router-58mc)\n\n#### CRA Fix\n\nIf an error occurs `'CI' is not recognized as an internal or external command, operable program or batch file.` when npm run build is used for the production build locally and manually deploying on Netlify, make sure to remove `CI=` for build in [package.json](https://github.com/praveen-1995/movie-db-react-project/blob/a39c21fa36e2782539f7c660a7f513d7ca32cede/package.json)\n\n```\n\n\"build\": \"react-scripts build\"\n\n```\n\nBut make sure to add `CI=` again when using continuous deployment setup on Netlify otherwise errors will occur\n\n```\n\n\"build\": \"CI= react-scripts build\",\n\n```\n\n---\n\n**To install React router 6**\n\n```sh\nnpm install react-router-dom@6\n```\n\n_Note: I have developed this project ~ [21] as part of React and Projects Course taught by John Smilga._\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpktcodes%2Fmovie-db-react-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpktcodes%2Fmovie-db-react-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpktcodes%2Fmovie-db-react-project/lists"}