Lesson 5 - Firebase - Web
Last updated
Last updated
How to structure your data and more about Firebase:
Using Firebase with a REST API
Other Firebase auth endpoints
Register with your email/pass to start writing/reading to our Firebase App. You don't need to use your real credentials. Use any email/pass values.
For the steps below, you will need an HTTP client to test these API calls, there are many out there. Such as Postman, Paw, Insomnia. Choose whichever you prefer.
POST
Payload
You will get a response back, that contains a JSON payload. Take note of the value of the keyidToken
andlocalId
ThelocalId
is your userspace token. So be sure to include it with every request.
POST
Payload
Take note to replace the values in <> with dynamic values you obtain in step 1.
GET
You should see the message you wrote to the database in step 2.
Checkout the branch firebase
- git checkout firebase
In src/utils/api.js
replace the username and password variables with your own from the steps above.
Go to the folder where you cloned down the bootcamp-web-project repo -