Technologies: React.js, Styled Components
Data: https://datasf.org/opendata Map: https://www.npmjs.com/package/pigeon-maps
- Your app should use
styled-componentsfor styling rather than scss/regular css. - Your app should use
react-router-domfor conditional rendering of your different "page" elements. - Your app should use a React-specific mapping package and load search results onto the map as pushpins. Look into npm packages like React Leaflet, React Google Maps, Pigeon Maps, Here Maps React, etc. Note that not all mapping APIs are free, so read the fine print!
- Your app should have a search bar that allows a user to specify a new location to search in. After user search, the map should recenter and show results in the new location.
- Pull data from your external API using
axios,fetch, or a similar tool. Make sure that your app runs a search for results in the default location upon render, displays search results, and displays pushpins for those results on the map! - Your app should have a separate location details "page" that the user can navigate to by clicking on a search result (and maybe even by clicking on a map pushpin). This location details component should NOT receive its data via props and should instead use
useEffect()to pull location details from the API after initial render. See the Blog App Demo for an example of how to accomplish this. - Hide any API keys using a
.envfile. Remember to add the.envfile to your.gitignoreso that it is not uploaded to GitHub! - Your app should have multiple components. Use props to pass data from parent components into child components to allow customization of the child components. (Sometimes it's easiest to start with one or two big components, and to break code out into smaller, more specific components after the core functionality is in place.)
- Make your code as DRY (Don't Repeat Yourself) as possible!
User should be able to see
-
Icon
-
Input field
-
Map
- Icon
- Card
- Text
User should be able to do
- Enter characters into input field:
- Filter Icons
- Filter Cards
-
Zoom in and out of Map
-
Click on icons displayed on Map
- PopUp Card
- Click on Card
