Skip to content

azz0r/5-day-weather-forecast

Repository files navigation

5 Day Weather forecast

📕 Index

npm cache clean;
npm install
npm run start;

or yarn

📚 Testing

Powered by Mocha, Chai, Enzyme, Sinon.

  • Run unit tests npm run test
  • Built using React
  • Static compiling
  • SASS compiling
  • Per component SASS
  • Web pack dev & production configs inherit from a common config
  • Mocha, Chai & Enzyme testing
  • Babel Stage 0 & ES6

Notes

  • API: OpenWeatherMap 5 Days: http://openweathermap.org/forecast5
  • The free version of the openweathermap API does not support SSL and github pages only supports HTTPS - therefore you will need to click the shield for this work

TODO

  • Fix tests, time was short
  • Strip back the imported react framework, its overkill in places
  • Error handling in fetchJSON
  • Error handling when the API doesn't work (e.g. load unsafe scripts work around)