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
# HerbChain - MongoDB (Mongoose) Starter
This scaffold is similar to the previous functional starter but uses **MongoDB with Mongoose** for the backend.
What's included:
- backend/ (Node.js + Express + Mongoose)
- frontend/ (React) - updated to use string IDs (_id)
- blockchain/ (Solidity + Hardhat) unchanged
- ai-fraud-detection/ example
Quick run (backend):
1. Install MongoDB locally or use a cloud MongoDB Atlas cluster.
2. Copy `backend/.env.example` to `backend/.env` and set `MONGO_URI`.
3. cd backend && npm install
4. npm run dev
Quick run (frontend):
1. cd frontend && npm install && npm start
2. If backend isn't on localhost:4000, set REACT_APP_API before starting:
REACT_APP_API=http://yourserver:4000 npm start
# HerbChain