Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.11 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.11 KB

Hootsuite Weather App

Build Status

Get weather results right in your Hootsuite dashboard!

Structure

src/js/

Main JavaScript code for the app is here, including utils, some libraries, etc.

src/js/app.js

The actual code for the app.

tests/

Tests for the app.

index.js

Backend/node server for the app.

views/

Contains the HTML templates for the app.

TODO:

  • Change class names in HTML from hs_*
  • Remove repetition in tests, especially with the dummy data and dummy response JSON
  • Remove inline HTML
  • Refactor return types of responses/geocode results to proper objects
    • in tests
    • in app code
  • Add eventlisteners instead of using onclick in HTML
  • Extract all error messages, class selectors, strings, urls into own file
  • Shorten code to under 80 columns

Possible improvements:

  • Comparison with already existing WeatherModels when adding new locations so all locations don't have to refresh when adding a new location