Country Wikipedia REST country Api made using React, tailwindcss

Solution retrospective
Country-wikipedia
[Country-wikipedia] is a React-based web application that utilizes Tailwind CSS and a country API to display information about different countries.
Features
- Fetches data from the country API and displays information about various countries.
- Allows users to search for specific countries.
- Provides detailed information about each country, including its population, capital, language, and more.
- Displays country flags and relevant images to enhance the user experience.
- Responsive design using Tailwind CSS, ensuring optimal viewing on different devices.
Installation
- Clone the repository:
https://github.com/Animeshhit/Country-wikipedia
- Navigate to the project directory:
cd Country-wikipedia
- Install the dependencies:
npm install
Usage
- Start the development server:
npm start
- Open a web browser and visit
http://localhost:3000
to access the website.
API Configuration
To retrieve data from the country API, you need to obtain an API key. Follow these steps to configure the API:
- Visit Country API and create an account.
- Once logged in, navigate to your account settings to find your API key.
- In your project directory, create a
.env
file. - Add the following line to the
.env
file:REACT_APP_COUNTRY_API_KEY=YOUR_API_KEY
. - Replace
YOUR_API_KEY
with the API key you obtained.
Technologies Used
- React
- Tailwind CSS
- Fetch (for making API requests)
Credits
- Country API for providing the country data.
- React for the JavaScript library.
- Tailwind CSS for the utility-first CSS framework.
License
This project is licensed under the MIT License.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Animesh kumbhakar's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord