update README

This commit is contained in:
2026-06-16 16:50:25 +00:00
parent 6fc0172ec3
commit 5231b0ead7

View File

@@ -36,14 +36,13 @@ Journi is a web application for journaling and visualizing travel experiences. U
## Backend — Firebase
![Database diagram](/DB-diagram.PNG)
![Firestore diagram](public/DB-diagram.PNG)
| Service | Purpose |
|---------|---------|
| **Authentication** | Google account sign-in via `GoogleAuthProvider` |
| **Firestore** | Stores user profiles (`users/{uid}`) and journal entries (`users/{uid}/entries/{id}`) |
| **Storage** | Stores uploaded trip photos, accessed per user |
| **Security rules** | Simple per-user access — only authenticated users can read/write their own data |
Journi uses Firebase as its backend. Users sign in with Google through Firebase Authentication, and their data is linked to their user ID.
Firestore stores user profiles in `users/{uid}` and journal entries in `users/{uid}/entries/{id}`. Firebase Storage stores uploaded trip photos.
Firebase Security Rules protect the data, so authenticated users can only read and write their own profiles, entries, and photos.
---