Giter Site home page Giter Site logo

react-weather-search's Introduction

Your Weather App

This is a Weather search single page application, using the open weather map api. it is made with the React framework. It enables the user to search for a city and will return the results of the local weather and temperature conditions. The background will change from two different images depending on if the city that is searched for had a current temperature of 15 degrees celsius or colder.

Lessons Learned

What did you learn while building this project? What challenges did you face and how did you overcome them?

To fix the calling of an api for every letter used in an input, you must delay the setting of your state by using the setTimeOut() function- this is a work around for async await calling problem.

A general overview and understanding of the React framework and its syntax.

-better use of the useState hook.

-using a ternary in JSX.

-using a map fucntion inside a return

Roadmap

  • Split the application into multiple components.
  • Imporove the function where the server call is being fired - App.js line 15 -- 22

Run Locally

Clone the project

  git clone https://link-to-project

Go to the project directory

  cd my-project

Install dependencies

  npm install

Start the server

  npm run start

Deployment

To deploy this project run

  npm run deploy

screen shots of the different backgrounds

![this is a screenshot of the main page]("./src/Screenshots/Screenshot 2021-11-25 at 20-45-46 Your Weather App-home.png") ![this is a screenshot of a city with colder weather]("./src/Screenshots/Screenshot 2021-11-25 at 20-45-46 Your Weather App-cold.png") ![this is a screenshot of a city with warmer weather]("./src/Screenshots/Screenshot 2021-11-25 at 20-45-46 Your Weather App-warm.png") ![this is a screenshot when the user enters unknown city ]("./src/Screenshots/Screenshot 2021-11-25 at 20-45-46 Your Weather App-notfound.png")

react-weather-search's People

Contributors

j-d-m 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.