Skip to content

haquanq-frontendmentor/rest-countries-api

Repository files navigation

Frontend Mentor - REST Countries API

This is a solution to the REST Countries API with color theme switcher challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Solution post Live demo

Table of Contents

🌅 Project Overview

Challenge Requirements

  • See all countries from the API on the homepage
  • Search for a country using an input field
  • Filter countries by region
  • Click on a country to see more detailed information on a separate page
  • Click through to the border countries on the detail page
  • Toggle the color scheme between light and dark mode (optional)

Status

Features

  • Search/filter countries with pagination

Accessibility

  • Responsive accross different screen sizes
  • Added custom indicator when interactive elements focused

🌠 Tech Stack and Approach

Built with

  • HTML5 – Semantic structure
  • React – Ease of use, great eco-system
  • TailwindCSS – Utility-first CSS for fast development
  • TypeScript - Interactivity and application logic
  • Vite - Fast development server, production build and easy configuration.

Approach

🍃 Local Development

Prerequisites

Install the following:

  • Git (latest version)
  • Node.js (latest LTS recommended)
  • pnpm (latest version)

Setup

git clone https://github.com/haquanq-frontendmentor/rest-countries-api.git
cd rest-countries-api
pnpm install

Start Development Server

pnpm dev

🍁 Deployment

Deployed to Github Pages via Github Action.