From 5231b0ead7d02cc5670da6eadbb9e83a03090a90 Mon Sep 17 00:00:00 2001 From: 20256426 Date: Tue, 16 Jun 2026 16:50:25 +0000 Subject: [PATCH] update README --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f04c205..c89b049 100644 --- a/README.md +++ b/README.md @@ -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. ---