{"id":21312019,"url":"https://github.com/richardcyrus/fm-rest-countries-api-app","last_synced_at":"2025-03-15T20:43:35.731Z","repository":{"id":96967030,"uuid":"390110111","full_name":"richardcyrus/fm-rest-countries-api-app","owner":"richardcyrus","description":"This is a solution to the REST Countries API with color theme switcher challenge on Frontend Mentor","archived":false,"fork":false,"pushed_at":"2022-07-16T23:56:53.000Z","size":1756,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T09:49:43.411Z","etag":null,"topics":["axios","frontend-mentor","headless-ui","heroicons-react","prop-types","reach-ui","react-query","react-router-v5","reactjs"],"latest_commit_sha":null,"homepage":"https://fm-rest-countries-api-app.vercel.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/richardcyrus.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":"2021-07-27T19:55:40.000Z","updated_at":"2023-05-12T17:04:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"1abb1921-8f9b-4b79-9245-675762be1f35","html_url":"https://github.com/richardcyrus/fm-rest-countries-api-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcyrus%2Ffm-rest-countries-api-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcyrus%2Ffm-rest-countries-api-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcyrus%2Ffm-rest-countries-api-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcyrus%2Ffm-rest-countries-api-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardcyrus","download_url":"https://codeload.github.com/richardcyrus/fm-rest-countries-api-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790944,"owners_count":20348378,"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":["axios","frontend-mentor","headless-ui","heroicons-react","prop-types","reach-ui","react-query","react-router-v5","reactjs"],"created_at":"2024-11-21T17:23:19.927Z","updated_at":"2025-03-15T20:43:35.710Z","avatar_url":"https://github.com/richardcyrus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - REST Countries API with color theme switcher solution\n\nThis is a solution to the [REST Countries API with color theme switcher challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/rest-countries-api-with-color-theme-switcher-5cacc469fec04111f7b848ca). Frontend Mentor challenges help you improve your coding skills by building realistic projects.\n\n## Table of contents\n\n- [Overview](#overview)\n  - [The challenge](#the-challenge)\n  - [Screenshot](#screenshot)\n  - [Links](#links)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [Useful resources](#useful-resources)\n- [Author](#author)\n\n## Overview\n\n### The challenge\n\nTo integrate with the [REST Countries API](https://restcountries.com/) to pull country data and display it like in the reference designs.\n\nUsers should be able to:\n\n- See all countries from the API on the homepage\n- Search for a country using an `input` field\n- Filter countries by region\n- Click on a country to see more detailed information on a separate page\n- Click through to the border countries on the detail page\n- Toggle the color scheme between light and dark mode _(optional)_\n\n### Screenshot\n\n![Reference preview](./design/reference/desktop-preview.jpg)\n\n#### Project Screenshots\n\n- [Desktop Home Light](./design/screenshots/desktop-screenshot-home-light.png)\n- [Desktop Home Dark](./design/screenshots/desktop-screenshot-home-dark.png)\n- [Desktop Detail Light](./design/screenshots/desktop-screenshot-detail-light.png)\n- [Desktop Detail Dark](./design/screenshots/desktop-screenshot-detail-dark.png)\n- [Mobile Home Light](./design/screenshots/mobile-screenshot-home-light.png)\n- [Mobile Home Dark](./design/screenshots/mobile-screenshot-home-dark.png)\n- [Mobile Detail Light](./design/screenshots/mobile-screenshot-detail-light.png)\n- [Mobile Detail Dark](./design/screenshots/mobile-screenshot-detail-dark.png)\n\n#### Reference images\n\n- [Desktop Home Light](./design/reference/desktop-design-home-light.jpg)\n- [Desktop Home Dark](./design/reference/desktop-design-home-dark.jpg)\n- [Desktop Detail Light](./design/reference/desktop-design-detail-light.jpg)\n- [Desktop Detail Dark](./design/reference/desktop-design-detail-dark.jpg)\n- [Mobile Home Light](./design/reference/mobile-design-home-light.jpg)\n- [Mobile Home Dark](./design/reference/mobile-design-home-dark.jpg)\n- [Mobile Detail Light](./design/reference/mobile-design-detail-light.jpg)\n- [Mobile Detail Dark](./design/reference/mobile-design-detail-dark.jpg)\n\n### Links\n\n- [Solution](https://www.frontendmentor.io/solutions/rest-countries-api-react-react-query-axios-onvnxlOSc)\n- [Repository](https://github.com/richardcyrus/fm-rest-countries-api-app)\n- [Live Site](https://fm-rest-countries-api-app.vercel.app/)\n\n## My process\n\n### Built with\n\n- CSS custom properties\n- CSS Grid\n- Flexbox\n- Mobile-first workflow\n- Semantic HTML5 markup\n- [Axios](https://axios-http.com/)\n- [cypress](https://www.cypress.io/)\n- [Heroicons](https://heroicons.com)\n- [Vite.js](https://vitejs.dev/) - a build tool that aims to provide a faster and leaner development experience for modern web projects\n- [Reach UI](https://reach.tech/)\n- [React Router](https://reactrouter.com/)\n- [React Query](https://react-query.tanstack.com/)\n- [React](https://reactjs.org/) - JS library\n\n### Useful resources\n\n- [A Modern CSS Reset](https://piccalil.li/blog/a-modern-css-reset/)\n- [A Complete Guide to Flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)\n- [A Complete Guide to Grid](https://css-tricks.com/snippets/css/complete-guide-grid/)\n- [Set up Light and Dark Theme in React](https://milddev.com/react/set-up-light-and-dark-theme-in-react/)\n- [A Dark Mode Toggle with React and ThemeProvider](https://css-tricks.com/a-dark-mode-toggle-with-react-and-themeprovider/)\n- [Guide to Advanced CSS Selectors - Part One](https://moderncss.dev/guide-to-advanced-css-selectors-part-one/#attribute-selector)\n- [Test Your Web App in Dark Mode](https://www.cypress.io/blog/2019/12/13/test-your-web-app-in-dark-mode/)\n- [Debouncing with React Hooks](https://dev.to/gabe_ragland/debouncing-with-react-hooks-jci)\n- [React Query Data Transformations](https://tkdodo.eu/blog/react-query-data-transformations)\n- [Hints for Adding Data-cy Attributes for Cypress Testing](https://haase1020.medium.com/hints-for-adding-data-cy-attributes-for-cypress-testing-998e8f64f325)\n- [Dynamically Importing Components with React.lazy](https://www.aleksandrhovhannisyan.com/blog/react-lazy-dynamic-imports/)\n- [Example setup for using msw with vitejs](https://github.com/msutkowski/msw-ts-vitejs)\n\n## Author\n\n- Website - [www.richardcyrus.com](https://www.richardcyrus.com)\n- Frontend Mentor - [@richardcyrus](https://www.frontendmentor.io/profile/richardcyrus)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardcyrus%2Ffm-rest-countries-api-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardcyrus%2Ffm-rest-countries-api-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardcyrus%2Ffm-rest-countries-api-app/lists"}