This projects implements using fetch method to return data from the weather api and return promises. The project also uses the try-catch block to handle scenarios where there is an error in the response from the API
- HTML,
- CSS,
- JavaScript
- Webpack
- Any kind of browser supporting CSS3 and HTML5
- Fork the repo to your remote repository.
- Clone or download the repository to your local machine.
- Run
npm install
to install the project pakages - Run
npm run dev
to bundle the packages for development. Dev is created for development, meaning that it supports hot module replacement, dev server, and a lot of things that assist your dev work - Run
npm run build
when you want to deploy the project for production. - Open the
index.html
file in your browser. - Type in a correct city or town name in the input field.
- If the input value is correct, the weather information about that city or town will be displayed.
- Feel free to change the temperature from kelvin to celcius by clicking the
Temperature toggle
Button
👤 Odong Sunday
- Portfolio
- Github: @OdongAlican
- Twitter: @odongsandie
- Linkedin: Sunday Alican odong
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!