This project is a React-based application that displays information about countries. It allows users to filter and search for countries based on various criteria, such as region and name. The application fetches country data from the REST Countries API, which provides detailed information about countries, including their names, regions, flags, and more.
- Search Functionality: Search for countries by name.
- Region Filter: Filter countries by region.
- Dark/Light Mode: Toggle between dark and light themes.
- Responsive Design: Optimized for both desktop and mobile devices.
- Node.js (v14 or later)
- npm or yarn
-
Clone the repository:
git clone https://github.com/eediallo/countries-react.git
-
Navigate to the project directory:
cd countries-react -
Install dependencies:
npm install # or yarn install
Start the development server:
npm start
# or
yarn startThe application will be available at http://localhost:5173.
To build the project for production:
npm run build
# or
yarn buildThe production-ready files will be in the dist/ directory.
This project is licensed under the MIT License. See the LICENSE file for details.