GithubHelp home page GithubHelp logo

countries-api's Introduction

Country API Application using React

This is a simple application that uses a public REST API https://restcountries.com/ to fetch and display data about various countries, it also fetches the weather using https://openweathermap.org/. The application is built using React framework and it is designed to help beginners learn how to fetch data from an API and display it using React components.

Features

The Small Country API Application has the following features:

  • Display a list of countries with basic information such as name, population, region, and flag.
  • Filter the list of countries by region or search term.
  • Click on a country to see more detailed information such as capital, languages, currencies and the weather.

Technologies

The application is built using the following technologies:

  • ReactJS
  • Axios ( for fetching data )
  • CSS

Installation

To install and run the application, follow these steps:

  • Clone the repository to your local machine.
  • Navigate to the project directory using a command prompt or terminal.
  • Run npm install to install the project dependencies.
  • Run npm start to start the development server.
  • Create a .env file in the root directory as follows :
    REACT_APP_WEATHER_URL = "https://api.openweathermap.org/data/2.5/weather"
    REACT_APP_WEATHER_KEY_VALUE = "plugYourKeyHere"
    
  • Open your browser and navigate to http://localhost:3000.

API

The API Application uses the REST Countries API to fetch data about various countries. This API is free to use and requires no authentication.

Contributions

Contributions to the project are welcome. If you find any bugs or would like to suggest a feature, please open an issue or submit a pull request.

countries-api's People

Contributors

y4riss avatar

Stargazers

TheF avatar ELjily-Mohamed avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.