Smart Herbal Hub — a community platform where people across Africa share their real experiences using herbs to treat everyday ailments.
# Smart Herbal Hub
A community platform where people across Africa share their real, personal experiences using
herbs for various conditions — which herb, how it was prepared, how much was used, and what
happened. It's built as a space for oral/traditional plant knowledge that is already widely used
but rarely written down, with moderation to keep dangerous misinformation in check.
This is a standalone project — not affiliated with or dependent on any other app.
## Quick start
```bash
npm install
npm run seed # creates + seeds prisma/dev.db (idempotent)
npm run dev #
localhost
```
Production build: `AUTH_SECRET= npm run build && npm start`
## Demo accounts (password: `Password123!`)
| Role | Email |
|---|---|
| Member | thandiwe@smartherbalhub.africa |
| Member | kwame@smartherbalhub.africa |
| Member | amara@smartherbalhub.africa |
| Member | zola@smartherbalhub.africa |
| Admin | admin@smartherbalhub.africa |
The seed also includes one deliberately dangerous demo post ("Miracle Cure Root" claiming to cure
cancer instead of chemotherapy) that has already been flagged by a member — log in as the admin
and visit `/admin/moderation` to see the moderation queue and hide it.
## What's implemented
- **Public:** home feed of shared herb experiences, search/filter by herb name or condition.
- **Members:** register/login, post a remedy (herb, local name, condition, preparation, dosage,
personal outcome), comment on posts, report (flag) posts or comments that look unsafe or
misleading.
- **Admin:** moderation queue of open reports, with one-click hide (removes the content from public
view while keeping it visible to the author and admins) or dismiss.
- **Safety:** a persistent site-wide disclaimer ("community testimony, not medical advice") plus a
reminder on the post-creation form to write from personal experience rather than claim a cure.
## Architecture
- `prisma/schema.sql` — SQLite schema: `User`, `Remedy`, `Comment`, `Flag`
- `prisma/s …