Skip to content

A vanilla JS demo of a weather app, fetching weather data(from WeatherBit api) based the client's current position. Also built with an express.js proxy server.

License

Notifications You must be signed in to change notification settings

islandskan/demo-weather-app-with-external-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo: Weather app

A demo version of a weather app that fetches weather data for the current location of the client. Built with vanilla JavaScript, Express.js, and the weatherbit api.

Table of Contents

Features

Features of the frontend:

  • Widget displaying the current city and country code of the client.
  • Widget displaying the current month, day, and weekday.
  • Widget changing background color based on what time it is(morning, daylight, evening, or nigth).
  • Widget displaying different weather icons based on the weather of the current location.
  • Widget displaying the current tempterature of the current postion(at the moment, it is in celcius degrees).
  • Widget displaying a brief discription of the current weather.

Features of the backend:

  • Server built with Express.js is handling the api requests.
  • Server is handling the routes(the endpoint). - Server is handling the caching.
  • Server is handling the rate limiting.
  • Server is handling the the query params
  • Server is accessing the environment variables.
  • Server serves the static(frontend) part of the app.
  • Server is enabling cors.

Built with

To do

  • Fix error handling, if data can't be fetched.
  • Fix error handling, if browser isn't compatible with or navigator.geolocation isn't enabled.
  • Develop do client can display more than one widget with the weather data from different locations.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Contact

Acknowledgment

Sources

Plugins/modules/other software

About

A vanilla JS demo of a weather app, fetching weather data(from WeatherBit api) based the client's current position. Also built with an express.js proxy server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published