Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ann-dev/fem-rest-countries-api

REST Countries API visualising app with colour theme switcher, based on Next.js framework.
https://github.com/ann-dev/fem-rest-countries-api

challenge dark-mode fetch-api frontend-mentor nextjs rest-api tailwindcss vercel

Last synced: 3 days ago
JSON representation

REST Countries API visualising app with colour theme switcher, based on Next.js framework.

Awesome Lists containing this project

README

        

# Frontend Mentor - REST Countries API gallery with color theme switcher

![Design preview for the Insure landing page coding challenge](./desktop-preview.jpeg)

✨ Live Demo


last commit badge

## Description

Responsive page integrated with REST Countries API (upgraded to v3) that pulls and display country data. Solution for frontendmentor.io challenge.

Main features:



  • Custom React Hook that uses Fetch API for pulling data

  • Based on Next.js framework and Tailwind CSS


  • Search function that instantly shows results on main page

  • Filter countries by region

  • Details page for each country

  • Light and dark mode toggle

## Usage

### Installation

Please navigate first to the "site" folder! Then run:

```sh
npm install
```

### Development

To run the app on a local server use:

```bash
npm run dev
# or
yarn dev
```

### Production

To compile for production build:

```sh
npm run build
# or
yarn build
```

## Credits

- Original design - [Frontend Mentor Team](https://www.frontendmentor.io/)
- REST API used - [REST Countries](https://restcountries.com)
- CSS framework - [Tailwind CSS](https://tailwindcss.com/)
- Listbox design & code - [tailwindlabs](https://github.com/tailwindlabs/headlessui)
- Loading spinner design & code - [Tobias Ahlin](https://tobiasahlin.com/spinkit/)
- Icons - [ionicons](https://ionicons.com/)
- 404 image - [freepik](https://www.freepik.com/)