We'll be using Firestore. Just follow the instructions below.
Open up the Firestore docsarrow-up-right in a new browser tab.
Scan the docs, especially the "Get a document" section.
Open another tab and go to Glitch.com.
Create a Glitch.com account and click around a bit to get comfortable.
Visit the Glitch project for this challenge, coordinated-freighterarrow-up-right
Look over the code in index.html and read the comments.
index.html
Try to query the star-wars-people collection inside the getPeople() function
star-wars-people
getPeople()
Click the "Show" button on your glitch to pop open a preview of your page.
Open Chrome's DevToolsarrow-up-right.
Navigate to the Consolearrow-up-right tab in DevTools to view your JavaScript output
Reference the Firestore docsarrow-up-right as necessary
Check out the solution in complete.html and watch the solution video!
complete.html
Last updated 7 years ago