# Phishing :fishing_pole_and_fish:
Gio & Jack
---
## us and firebase

---
## all the firebase options

---
## thinking we're done with the hard work and then firebase

---
## us at lunchtime

---
## Oli sending us some code that worked straight away

---
# #TIL
If using
```javascript=100
const db = firebase.firestore();
```
you will need:
```javascript=1
import firebase from '../firebase';
import 'firebase/firestore';
```
---
I need to learn more about noSQL
---
Database > rules:
```javascript=
allow read, write: if true;
```
is important!
---
Posting a document in a collection (?):
```javascript=100
db.collection("survey").doc(user.email).set(form);
```
---
https://www.youtube.com/watch?v=m_u6P5k0vP0
{"metaMigratedAt":"2023-06-15T09:51:31.232Z","metaMigratedFrom":"Content","title":"Phishing :fishing_pole_and_fish:","breaks":true,"contributors":"[{\"id\":\"fc28ac9f-05b4-4c0c-ba0f-978abbf9d995\",\"add\":468,\"del\":65},{\"id\":\"b0c18fac-267d-47b1-9eaf-ccae71a12c3d\",\"add\":711,\"del\":66}]"}