Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/samiran2004/country-details-finder-online
- Owner: Samiran2004
- Created: 2023-10-20T03:47:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-20T03:52:25.000Z (about 1 year ago)
- Last Synced: 2023-10-20T13:33:11.964Z (about 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/