Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

Latest commit

 

History

History
57 lines (53 loc) · 1.3 KB

weather.md

File metadata and controls

57 lines (53 loc) · 1.3 KB

Weather component

Current weather data By ZIP code

  • API - api.openweathermap.org/data/2.5/weather?zip={zip code},{country code}

General

  • Env package for API key
  • Refactor routers to use React Router DOM
  • Move routes to a separate file
  • Refactor App component
    • Integrate React Router with Redux
    • Extract header navigation
    • Nested routes
  • Heroku env variable for API key

Weather component

  • New route test
    • New route
  • Selectors test
    • Selectors
  • Reducer test
    • Reducer
  • Actions test
    • Actions
  • Sagas test
    • Sagas
  • Container test
    • Container
  • Component test
    • Component

Plan of action

  • Create first component similar to https://openweathermap.org/find?q=20165
  • Design container/component - https://mockflow.com/app/#Wireframe alt text
  • Create mock API
  • Write container tests
  • Create container code
  • Write component tests
  • Create components
  • Design state
    • zip
    • city
    • results
      • city_name
      • temp
      • icon_url
      • desc_short
      • desc_long
      • geo_coord
    • error
  • Selector test
    • Selector
  • Sagas test
    • Sagas
  • Enhance components
  • Real API