Skip to content

All Countries and their detail page using React and Rest Country Api | Front End Mentor Challenge

Notifications You must be signed in to change notification settings

masterpranay1/country-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COUNTRY APP

Country App Made with React Redux

A React Application showing all the countries of the world fetching data from a API. 😻

Live Link (Hosted Using Render)

This is a challenge from Front End Mentor

Tools Used

  • React
  • Redux
  • React Router v6
  • React Hooks
  • Country Api
  • SASS ( for styling )

FEATURES 👇

Country Api

Rest Country Api is used to fetch all the data. Fetching is done in three ways:-

  1. All the data with limited options.

  2. Data of a particular country by name.

  3. Data of a list of countries by their codes.

    React Hooks are used to mount the data after calling them. And updating only if needed.

Multi Page Routing

There are two main pages in this application.

  1. Homepage
  2. Details Page This Detail page is dynamic ( passing country name as url as parameter) and display the detail of the country user wish to view.

Homepage Detail Page

Also We can go back with the Go Back Button.

Go Back

We can route throgh borders in the details page

Searching Through borders

There is 404 Page

404-page

Searching and Filtering

  • We can search data by Name
  • We can filter data by Region

This all features are setup using Redux. There are dedicated dispatch functions for many events.

Search filter filter-display

If the Searched country is not found, it displays a error message

not-found

Dark Theme , MicroAnimations, Load More Option

  • There is Theme Preference choice.

theme

  • There are small microanimations.
  • There is a special load more button on the home page which, on click, shows more countries. [ This is hidden if all the countries are displayed ]

load-more

Fully Responsive

homepage details page

Author

Hey!! I am Pranay Raj. I am passionate in Web Devlopment and Making Creative Projects is like my hobby :)

You can connect me:

linkedin-image Github-image