Skip to content

marcusvalverde/Parks-Planner

 
 

Repository files navigation

Parks-Planner

/****** APIs *******/

/****** Google Maps component *******/

  • Rendered within .
  • Note that has a default prop "google".
  • Exported the component within GoogleApiWrapper.

/****** Get All the Park Info *******/

  • [ Base URL: developer.nps.gov/api/v1 ]
  • Send GET request to /parks
    • Be careful, if you don't limit the number of results, NPS.gov's response can be very slow.
  • Save parks info in PostgreSQL.
  • Upon page load, retrieve the parks info from database and save to Redux store.

/****** Generate Markers on the Map *******/

  • Each marker is generated from a "park" in parksList array (stored in state (Redux store)).
  • Each marker has an onClick listener that triggers a GET request to server with the (single) park code in request query.
  • Upon getting the response from NPS.gov, a component is rendered by .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.2%
  • CSS 21.6%
  • HTML 1.2%