Skip to content

The site is using REST Countries API to display it, allowing user to filter, find countries by name and view country details.

Notifications You must be signed in to change notification settings

Hanka8/FM-rest-api-countries

Repository files navigation

REST Countries API

Table of contents

Overview

The website is displaying list of coutries, their details and flags. It uses data from REST Countries

Key features

  • see all the countries on the homepage
  • search for a coutry using an input field
  • filter countries by region
  • click on a coutry 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
  • use magnifier to see flag details

Screenshot

Link

How to run

Installation

  1. Clone the repository:

    git clone [email protected]:Hanka8/FM-rest-api-countries.git

  2. Navigate into the project directory:

    cd FM-rest-api-countries

  3. Install the dependencies:

    using npm: npm install

    using yarn: yarn install

Running the app

  1. Start the development server:

    npm run dev

  2. Open the app in your browser:

    The application should be running at http://localhost:5173 (or another port if specified by Vite). You can open this URL in your browser to view the app.

Built with

  • React - JS library
  • TypeScript
  • Vite
  • Axios - Promise-based HTTP client
  • Framer Motion - for smooth animations
  • Image Magnifier.

Continuous development

  • UPDATE 1: using ThemeContext instead of prop drilling

Author

About

The site is using REST Countries API to display it, allowing user to filter, find countries by name and view country details.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published