GithubHelp home page GithubHelp logo

arhanansari / react-weather-forecast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gigacore/react-weather-forecast

0.0 0.0 0.0 319 KB

A simple 5-day weather forecast application using React & Redux

Home Page: https://gigacore.in/demos/react-weather-forecast/

License: MIT License

JavaScript 72.39% HTML 2.70% SCSS 24.92%

react-weather-forecast's Introduction

logo

5-Day Weather Forecast

A simple application to display 5-day weather forecast using the OpenWeatherMap API. Built on top of my recently created React-Redux-Sass Starter Kit.

Demo

https://www.gigacore.in/demos/react-weather-forecast/

Pre-requisites

  • Node.js 9.8.0 and above

Run

git clone
cd react-weather-forecast
npm i

Start the dev server


npm run start:dev

Build


npm run build

Notes:

  • Running the build bundles all your updates to bundle.js and bundle.css in dist folder.
  • If you insist to automate the build upon appending changes to files, use webpack --watch

Test


npm run test

Notes:

  • Unit testing can be done manually by executing the above command.
  • It will be done automatically prior committing the updates to the repo as a pre-commit hook.

TODOs

  • Provide an option for user to choose location of their choice by Name, Lat/Long etc
  • Unit testing
  • Identify and address edgecases.
  • Revisit the code to improve performance. Such as sorting, looping, searching etc.
  • Use a proper loading spinner icon on page load
  • Detect location automatically
  • Display hourly forecasts.
  • Add an option to choose Units in either Metric or Imperial.
  • Display higher-level of weather information such as Wind Speed, Precipitation etc
  • Fix lint issues and config the eslintrc to support "no-vars-used" for Imports
  • Better and more functional UI
  • Prevent fetching new data on every refresh by caching the data for a set duration of session.

Tech Stack

  • React.js
  • Redux
  • JavaScript (ES6)
  • HTML5
  • SASS
  • Jest + Enzyme

The MIT License (MIT)

MIT © 2018 Santhosh Sundar

react-weather-forecast's People

Contributors

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