Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samiran2004/country-details-finder-online

Country Details Finder
https://github.com/samiran2004/country-details-finder-online

Last synced: about 2 months ago
JSON representation

Country Details Finder

Awesome Lists containing this project

README

        

# Country-Details-Finder-Online

#Country Details Finder
This is a web app that allows you to search for any country by its name and get some basic information about it, such as its flag, continent, population, and currency. It uses HTML, CSS, and JavaScript to create a simple and responsive user interface, and it fetches data from the restcountries.com API.

How to use
Clone or download this repository to your local machine.
Open the index.html file in your browser.
Enter the name of a country in the input field and click the submit button.
You will see the details of the country displayed below the input field.
You can also view the console to see the currency code of the country.
Features
The app validates the user input and shows an error message if the input is empty or invalid.
The app handles the case when the API returns no results or an error.
The app uses async/await syntax to handle asynchronous operations.
The app uses template literals to construct the API URL dynamically.
The app uses CSS flexbox and media queries to create a responsive layout.
Demo
You can see a live demo of the app here: https://samiran2004.github.io/Country-Details-Finder-Online/