This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
This project is a React application built with Vite that leverages the Countries API to provide information about different countries. Users can view a list of all countries, filter them by region, search for a specific country by name, and view detailed information about a selected country.
-
List All Countries:
- Display a list of all countries retrieved from the Countries API.
-
Filter by Region:
- Allow users to filter countries by region (e.g., Africa, Americas, Asia, Europe, Oceania).
-
Search by Name:
- Provide a search functionality for users to find a specific country by entering its name, utilizing the API endpoint.
-
View Country Details:
- Allow users to click on a country to view detailed information, including population, area, capital, and more.
- React
- Vite (with @vitejs/plugin-react)
- Node.js installed on your machine
- npm or yarn package manager
-
Clone the repository:
https://github.com/costa-junior01/country-api-app-challenge.git
-
Navigate to the project directory:
cd country-api-app-challenge
-
Install dependencies:
npm install
or
yarn install
-
Start the development server:
npm run dev
or
yarn dev
-
Open your browser and visit http://localhost:5173/ to view the application.
- Explore the list of all countries.
- Filter countries by region using the provided dropdown.
- Search for a specific country by entering its name in the search bar (utilizing the API endpoint).
- Click on a country to view detailed information.
/src
: Contains the main source code of the React application./src/components
: Includes React components used in the application./src/screens
: Contains React components representing different pages/routes./src/ApiUrl
: Includes utility functions or services, such as API requests.
This project is licensed under the MIT License. Feel free to modify and use it for your own purposes.
- Countries API for providing country data.