{"id":19057628,"url":"https://github.com/pktcodes/cocktails-react-project","last_synced_at":"2025-07-30T21:34:32.695Z","repository":{"id":118588242,"uuid":"502402438","full_name":"pktcodes/cocktails-react-project","owner":"pktcodes","description":"Cocktails Project using React  ","archived":false,"fork":false,"pushed_at":"2022-08-15T16:49:04.000Z","size":391,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T01:41:42.203Z","etag":null,"topics":["api","cocktails","cocktails-api","context-api","css3","ecmascript6","html5","javascript","react","react-hooks","react-router-v6","usecallback","usecontext","useref","usestate"],"latest_commit_sha":null,"homepage":"https://react-cocktails-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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-11T16:38:25.000Z","updated_at":"2024-07-19T10:27:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff4ab6c5-2013-43e3-b4f5-279708cd74bf","html_url":"https://github.com/pktcodes/cocktails-react-project","commit_stats":null,"previous_names":["pktcodes/cocktails-react-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pktcodes/cocktails-react-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fcocktails-react-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fcocktails-react-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fcocktails-react-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fcocktails-react-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pktcodes","download_url":"https://codeload.github.com/pktcodes/cocktails-react-project/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pktcodes%2Fcocktails-react-project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267945280,"owners_count":24170216,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","cocktails","cocktails-api","context-api","css3","ecmascript6","html5","javascript","react","react-hooks","react-router-v6","usecallback","usecontext","useref","usestate"],"created_at":"2024-11-08T23:58:27.803Z","updated_at":"2025-07-30T21:34:32.674Z","avatar_url":"https://github.com/pktcodes.png","language":"JavaScript","readme":"# Cocktails 🍸\n\u003e PROD [Live] : https://react-cocktails-prod.netlify.app/\n\n#### Cocktails consists of a straight forward user interface where there is a \n- List of cocktails by default, a search form to search for specific cocktails as we are typing, and along with the routes to the **Home** and **About** in the navigation bar.\n- To get more details of a specific cocktail in the list, click on the **Details**. \n- For each page render the **Loading** component has been implemented and unknown route URLs are handled by the **Error** component.\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 \nHTML, CSS, JavaScript, React ~ Context API - Hooks, React Router 6\n\n#### API\nhttps://www.thecocktaildb.com/api.php\n\n#### Deployment / Hosting\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/cocktails-react-project/blob/3947a359654ca7be2260e369f1cb5b2f60d7ebe9/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/cocktails-react-project/blob/3947a359654ca7be2260e369f1cb5b2f60d7ebe9/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\"build\": \"CI= react-scripts build\",\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 ~ [15] as part of React and Projects Course taught by John Smilga.*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpktcodes%2Fcocktails-react-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpktcodes%2Fcocktails-react-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpktcodes%2Fcocktails-react-project/lists"}