You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit def154c
Browse filesBrowse the repository at this point in the historyBrowse files
[🚀 Live Demo](https://bibliodrift-dm.netlify.app/) (static frontend; AI/auth need a deployed backend — see [docs/contributing.md](docs/contributing.md)) •
25
-
[📚 Documentation](docs/) •
26
-
[🤝 Contributing](docs/contributing.md)
27
-
23
+
<ahref="https://www.netlify.com">
24
+
<imgsrc="https://www.netlify.com/assets/badges/netlify-badge-dark.svg"alt="Deploys by Netlify" />
25
+
</a>
28
26
</div>
29
27
30
28
---
@@ -105,7 +103,48 @@ It feels like:
105
103
| Storage | LocalStorage |
106
104
107
105
---
106
+
## 🚀 Backend Deployment & BACKEND_URL Setup
107
+
108
+
> ⚠️ The frontend is deployed on Netlify, but the Flask backend is **not yet deployed**.
109
+
> Google Sign-In and all AI features require the backend to be running.
110
+
111
+
### Why is this needed?
112
+
When a user clicks "Sign in with Google", the browser sends a request to `/api/v1/auth/google`.
113
+
Netlify needs to know where to forward that request, that's what `BACKEND_URL` is for.
114
+
Without it, Netlify has no rule for `/api/v1/*` and shows a 404 error.
115
+
116
+
### Step 1 — Deploy the Flask backend
117
+
118
+
You can deploy the backend (located in the `/backend` folder) to either:
yield"There is a particular warmth in finding the right story at the right time. Let me tuck these gentle tales into your shelf for a comfortable evening."
yield"Some stories prefer the shadows, whispering truths we only dare to hear at night. I've pulled these mysterious tomes from the back shelf for you."
1112
+
else:
1113
+
# Generic but varied fallbacks
1114
+
variations= [
1115
+
"The books have been whispering your name today. I've pulled a few that seem particularly eager to meet you.",
1116
+
"Every reader is a traveler, and every book a destination. Which of these paths shall we walk today?",
1117
+
"I've spent a lifetime listening to the scent of old paper... and it tells me these stories belong in your hands.",
1118
+
"The stars and the ink seem to be in alignment. Here is what I've found in the quiet corners of the shop for you."
0 commit comments