Giter Site home page Giter Site logo

edinburgh-weather's Introduction

5 Day Weather Forecast

Prerequisites

An up-to-date node and npm installation.

Technology

Client-side application, build with Javascript, HTML and CSS, utilising React.js for view rendering, Redux for state management, Radium for CSS and create-react-app for build and run (and Webpack and Babel under the covers). Express.js is used for the server, specifically to allow the site to run on Heroku. Testing is entirely server-side, using Mocha and Enzyme.

Install Dependencies

npm install

Run

To run on a local machine:

npm run develop

Then open your browser at http://localhost:3000.

Build

To build for production:

npm run build

After building, then production install can be run using:

npm start

And again, open your browser at http://localhost:3000.

Testing

To run unit tests:

npm test

To Do

There are 4 main areas to improve:

  1. Improved testing - a full acceptance testing suite, using webdriver.io and cucumber or yadda. In addition, add code coverage and improve unit testing. The components are reasonably well tested, but I ran out of time to TDD a fair amount of the redux code. In addition, acceptance tests would be useful to ensure that the app matches expectations - for example, what should the rules for summarising the daily weather be?
  2. Improve the UX. At the moment, it is very basic. For example, to show the hour breakdown for each day, you need to click the day row, but there is little indication that that is possible. It's also very monochrome.
  3. Add new functionality, such as allowing the user to select the location, and change the units from metric to imperial, or refresh the data on a timer, rather than forcing the user to press refresh.
  4. Fix any bugs (e.g. take into account daylight savings), and add error handling, 404 support, etc.

edinburgh-weather's People

Contributors

recipher avatar

Watchers

 avatar James Cloos 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.