This weather app allows you to get the forecast of a location of your choice by typing it in the search box.
By default, the app detects your current location, and if available, use it to get the weather information.
This app uses:
- Promises
- Callbacks
- APIs ( Geolocation API and OpenWeather API)
- Object Oriented Programming
- Factory Functions
- Module Pattern
To handle the complexity of synchronizing the views with data changes, I created an Observable object on which can be attached handlers.
The Observable class
is located in ./src/utils.js
.
Also the app takes care of updating the information every 10mn as it is recommended by OpenWeather.
To run the project:
- Clone the repository: https://github.com/FabienNeibaf/Weather-App
- Run
npm install
. It will install all the dependencies required by the project - Run
npm start
to start the development server. It will automatically open the page in your default browser.
Feel free to contribute if you want to make it better.