Git Product home page Git Product logo

buildit-weather's Introduction

BuildIt Weather Forecast

Small React + Redux application that shows the weather forecast using OpenWeather API.

Demo

See it working here

Install

Just run on the root of the folder:

npm install

Run

To run in dev mode:

npm run start:dev

To build for production run:

npm run build

To run like production, please run npm run build first, and then run:

npm start

Test

All tests are inside of each component folder, some are using Jest snapshots.

To run them:

npm test

Note: Please ensure you have the latest Node LTS (v7.10 at the moment of this writing).

Notes

Because of the requirement to have this deployed somewhere, nowadays every free hosting service serves the content on HTTPS, unfortunately OpenWeatherMap APIs only provides HTTP urls for the Free Tier.

Therefor I had to create a small Node server (src/server.js) that would fetch the API content and then serve it to the frontend so all communication between frontend and backend would be over HTTPS.

Further improvements

  • Make the target city configurable and/or get geolocation from browser
  • Implement caching of the API calls using the service worker API for fully offline experience.
  • Improve the UI with weather images/icons
  • Show a chart of the different hours on each day instead of only text
  • Implement refresh period (i.e. refresh data every 10min)

buildit-weather's People

Contributors

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