Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kmonika26/masai-repo


https://github.com/kmonika26/masai-repo

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

## Country Assignment Project

This project displays country data fetched from an API and allows sorting countries by population.

## How to Use

1. Click the "Fetch Country Data" button to fetch country data from the API.
2. Use the "high to low" button to sort countries by population from highest to lowest.
3. Use the "low to high" button to sort countries by population from lowest to highest.

## Project Structure

- `index.html`: Contains the HTML structure of the project.
- `style.css`: Contains the CSS styles for the project.
- `script.js`: Contains the JavaScript code for fetching data, displaying data, and sorting countries.

## Setup

No special setup is required. Simply open the `index.html` file in a web browser to run the project.

## Usage

Click the "Fetch Country Data" button to fetch data about countries from the API.
Click the "high to low" button to sort the countries by population from highest to lowest.
Click the "low to high" button to sort the countries by population from lowest to highest.

## Files

`index.html`: The main HTML file that contains the structure of the webpage.
`style.css`: The CSS file that styles the webpage.
`script.js`: The JavaScript file that contains the logic for fetching data and displaying it on the webpage.

## Dependencies

This project uses the Fetch API to fetch data from the API.
The project uses grid layout for displaying country data in a grid format.

## Credits

This project uses the [fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to fetch data from an API.

This project was created by [K MONIKA]. You can find me on [https://github.com/KMONIKA26].