Code Monkey home page Code Monkey logo

natwest-assignment-weatherapp's Introduction

🌡️ Weather App with React

This is a simple weather application built using React. It allows users to search for a location and retrieve current weather information. The app utilizes the OpenWeatherMap API to fetch weather data based on the user's input.

✨ Features

  • Type the name of city whose weather has to be known OR allow location access(to check weather of present location).
  • Displays the present weather conditions (Temperature, Humidity, Cloud Cover) along with forecasts for the future.
  • Toggle between Celsius and Fahrenheit temperature units
  • Responsive design for a seamless experience on different devices
  • Error handling for invalid location searches or failed API requests
  • Recent searches feature that displays a list of the last five cities that the user has searched for.
  • Dark and Light Theme

Technologies Used

WeatherApp is built using the following technologies:

  • React.js: A JavaScript library for building user interfaces. Used React features likes states, contexts etc.
  • OpenWeatherMap API: An API that provides access to weather data, including current weather conditions, forecasts, and more.
  • Axios: A promise-based HTTP client for making API requests from the frontend.

Getting Started

To run the WeatherApp locally, follow these steps:

  1. Clone the repository.
  2. Navigate to the project directory: cd WeatherAPP
  3. Install the dependencies: npm install
  4. Create a free account on OpenWeatherMap to obtain an API key.
  5. Create a .env file and replace <YOUR_API_KEY> with your actual API key.
  6. Start the development server: npm start
  7. Open your web browser and visit http://localhost:3000 to access the WeatherApp.

Resources

natwest-assignment-weatherapp's People

Contributors

khusbu853 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.