World Explore is a web application that provides detailed information about countries across the globe. It offers an interactive and user-friendly interface to explore data such as population, capital city, neighboring countries, currencies, native names, languages, and more.
-
Search and Filter:
- Search for any country using the search box at the top of the page.
- Filter countries based on their continent.
-
Country Cards:
- The homepage displays country cards with flags, names, population, and capital cities.
- Click on a country card to view more detailed information about the selected country.
-
Responsive Design:
- Fully responsive layout that works on desktop, tablet, and mobile devices.
-
Dark Mode:
- Toggle between light and dark modes for comfortable viewing.
Preview:
- Next.js - React framework for production
- React.js - JavaScript library for building user interfaces
- Tailwind CSS - Utility-first CSS framework
- TypeScript - Typed superset of JavaScript
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Wondahs/countries cd countries -
Install dependencies:
Using pnpm(RECOMMENDED):
pnpm install
Or, using npm:
npm install
-
Run the development server: Using pnpm(RECOMMENDED):
pnpm run dev
Or, using npm:
npm dev
-
Open your browser: Navigate to http://localhost:3000 to view the application.
- Use the search bar to find a specific country.
- Click on the continent filters to view countries from a particular region.
- Click on a country card to view detailed information about that country.
- Toggle dark mode using the switch in the navigation bar.
The application uses a locally hosted JSON file to provide country data. An API is implemented to read this file, parse it to JSON, and send it to the frontend for rendering. The API endpoints include:
/api/countries: Returns all countries/api/countries/:id: Returns data for a specific country
The project is deployed on Vercel. You can view the live application here.
For deploying your own instance:
- Fork this repository
- Sign up for a Vercel account
- Connect your GitHub account to Vercel
- Deploy the forked repository
Contributions to enhance the functionality and appearance of World Explore are welcome! Here's how you can contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Please read CONTRIBUTION GUIDELINES for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
Github/Email - Wondahs / [email protected]
Project Link: Countries
