{"id":20047463,"url":"https://github.com/balakrish001/fetch-and-routing-practice","last_synced_at":"2026-06-05T13:31:13.500Z","repository":{"id":254578000,"uuid":"846879705","full_name":"Balakrish001/Fetch-And-Routing-Practice","owner":"Balakrish001","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-24T07:58:40.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T08:19:12.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Balakrish001.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":"2024-08-24T07:55:15.000Z","updated_at":"2024-08-24T07:58:44.000Z","dependencies_parsed_at":"2024-08-24T18:31:34.756Z","dependency_job_id":null,"html_url":"https://github.com/Balakrish001/Fetch-And-Routing-Practice","commit_stats":null,"previous_names":["balakrish001/fetch-and-routing-practice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Balakrish001/Fetch-And-Routing-Practice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FFetch-And-Routing-Practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FFetch-And-Routing-Practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FFetch-And-Routing-Practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FFetch-And-Routing-Practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Balakrish001","download_url":"https://codeload.github.com/Balakrish001/Fetch-And-Routing-Practice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FFetch-And-Routing-Practice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33944671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"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":[],"created_at":"2024-11-13T11:36:24.422Z","updated_at":"2026-06-05T13:31:13.485Z","avatar_url":"https://github.com/Balakrish001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"In this project, let's perform **Fetch and Routing** by applying the concepts we have learned till now.\n\n### Refer to the image below:\n\n\u003cbr/\u003e\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/fetch-and-routing-practice-output.gif\" alt=\"fetch and routing practice desktop output\" style=\"max-width:70%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)\"\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\n### Design Files\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n- [Extra Small (Size \u003c 576px) and Small (Size \u003e= 576px)](https://assets.ccbp.in/frontend/content/react-js/fetch-and-routing-practice-sm-outputs.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - Home](https://assets.ccbp.in/frontend/content/react-js/fetch-and-routing-practice-lg-blog-list-output.png)\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px) - Blog Item Details](https://assets.ccbp.in/frontend/content/react-js/fetch-and-routing-practice-lg-blog-item-output.png)\n\n\u003c/details\u003e\n\n### Set Up Instructions\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n- Download dependencies by running `npm install`\n- Start up the app using `npm start`\n\u003c/details\u003e\n\n### Completion Instructions\n\n\u003cdetails\u003e\n\u003csummary\u003eFunctionality to be added\u003c/summary\u003e\n\u003cbr/\u003e\n\nThe app must have the following functionalities\n\n- When the app is opened, Home Route should be displayed\n- When the Home Route is opened,\n\n  - Make HTTP GET request to the **blogsApiUrl**\n  - **_loader_** should be displayed while fetching the data\n  - After fetching the data, the list of blogs should be displayed\n\n- When a blog item in Home Route is clicked,\n  - Page should be navigated to the Blog Item Details Route with the URL `/blogs/:id`\n- When the Blog Item Details Route is opened,\n  - Make HTTP GET request to the **blogItemDetailsApiUrl** with the blog id to get the details of the blog\n    - Example: `https://apis.ccbp.in/blogs/2`\n  - **_loader_** should be displayed while fetching the data\n  - After fetching the data, the details of the blog should be displayed\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n\u003csummary\u003eAPI Requests \u0026 Responses\u003c/summary\u003e\n\u003cbr/\u003e\n\n**blogsApiUrl**\n\n#### API: `https://apis.ccbp.in/blogs`\n\n#### Method: `GET`\n\n#### Description:\n\nReturns a response containing the list of all blogs\n\n#### Response\n\n```json\n[\n  {\n    \"id\": 1,\n    \"title\": \"React v16.9.0 and the Roadmap Update\",\n    \"image_url\": \"https://miro.medium.com/max/1050/1*i3hzpSEiEEMTuWIYviYweQ.png\",\n    \"avatar_url\": \"https://miro.medium.com/max/4096/1*wiOSfPd2sY0gXSNK9vv6bg.jpeg\",\n    \"author\": \"Dan Abramov,\",\n    \"topic\": \"React.js\"\n  },\n  ...\n]\n```\n\n**blogItemDetailsApiUrl**\n\n#### API: `https://apis.ccbp.in/blogs/:id`\n\n#### Example: `https://apis.ccbp.in/blogs/2`\n\n#### Method: `GET`\n\n#### Description:\n\nReturns a response containing the details of the specific blog\n\n#### Response\n\n```json\n{\n  \"id\": 2,\n  \"title\": \"React v16.7: No, This Is Not the One With Hooks\",\n  \"image_url\": \"https://miro.medium.com/max/3158/1*kEPCQNY4dwVyaFuLEwJcNQ.png\",\n  \"avatar_url\": \"https://avatars.githubusercontent.com/u/3624098?v=4\",\n  \"author\": \"Andrew Clark\",\n  \"content\": \"React follows semantic versioning. Typically, this means that we use patch versions for bugfixes, and minors for new (non-breaking) features. However, we reserve the option to release minor versions even if they do not include new features. The motivation is to reserve patches for changes that have a very low chance of breaking. Patches are the most important type of release because they sometimes contain critical bugfixes.\",\n  \"topic\": \"React.js\"\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eComponents Structure\u003c/summary\u003e\n\n\u003cbr/\u003e\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/fetch-and-routing-practice-home-component-breakdown-structure.png\" alt=\"fetch and routing practice home component breakdown structure\" style=\"max-width:100%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)\"\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/fetch-and-routing-practice-blog-item-component-breakdown-structure.png\" alt=\"fetch and routing practice blog item component breakdown structure\" style=\"max-width:100%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)\"\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eImplementation Files\u003c/summary\u003e\n\u003cbr/\u003e\n\nUse these files to complete the implementation:\n\n- `src/App.js`\n- `src/components/Home/index.js`\n- `src/components/BlogList/index.js`\n- `src/components/BlogList/index.css`\n- `src/components/BlogItem/index.js`\n- `src/components/BlogItem/index.css`\n- `src/components/BlogItemDetails/index.js`\n- `src/components/BlogItemDetails/index.css`\n\u003c/details\u003e\n\n### Important Note\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n**The following instructions are required for the tests to pass**\n\n- `Home` route should consist of `/` in the URL path\n- `About` route should consist of `/about` in the URL path\n- `Contact` route should consist of `/contact` in the URL path\n- `BlogItemDetails` route should consist of `/blogs/:id` in the URL path\n- No need to use the `BrowserRouter` in `App.js` as we have already included in `index.js` file\n- Wrap the `Loader` component with an HTML container element and add the `data-testid` attribute value as `loader` to it as shown below\n\n  ```jsx\n  \u003cdiv data-testid=\"loader\"\u003e\n    \u003cLoader type=\"TailSpin\" color=\"#00bfff\" height={50} width={50} /\u003e\n  \u003c/div\u003e\n  ```\n\n\u003c/details\u003e\n\n### Resources\n\n\u003cdetails\u003e\n\u003csummary\u003eColors\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv style=\"background-color: #8e8e8e; width: 150px; padding: 10px; color: white\"\u003eHex: #8e8e8e\u003c/div\u003e\n\u003cdiv style=\"background-color: #000000; width: 150px; padding: 10px; color: white\"\u003eHex: #000000\u003c/div\u003e\n\u003cdiv style=\"background-color: #d3d3d3; width: 150px; padding: 10px; color: white\"\u003eHex: #d3d3d3\u003c/div\u003e\n\u003cdiv style=\"background-color: #2f4f4f; width: 150px; padding: 10px; color: white\"\u003eHex: #2f4f4f\u003c/div\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFont-families\u003c/summary\u003e\n\n- Roboto\n\n\u003c/details\u003e\n\n\u003e ### _Things to Keep in Mind_\n\u003e\n\u003e - All components you implement should go in the `src/components` directory.\n\u003e - Don't change the component folder names as those are the files being imported into the tests.\n\u003e - **Do not remove the pre-filled code**\n\u003e - Want to quickly review some of the concepts you’ve been learning? Take a look at the Cheat Sheets.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalakrish001%2Ffetch-and-routing-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalakrish001%2Ffetch-and-routing-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalakrish001%2Ffetch-and-routing-practice/lists"}