ISIH-2025 AstraX
VEDATRACE is a blockchain herb traceability platform built to trace the lifecycle of Ayurvedic and herbal products — from the farm to the consumer.
Vedatrace ensures end to end traceability of medicinal herbs from geo-tagged collection points to final formulation labels offering full transparency to both regulators and consumers.
- 🌿 Farmer logs geo-tagged harvest data as the first entry in the traceability chain.
- 🔬 Processing & Lab Testing steps are digitally signed; reports stored on IPFS.
- 🏭 Manufacturing links final product to the original batch, entire history anchored on Polygon blockchain.
- 📱 Consumer scans QR code to access the full, verified journey from farm to shelf.
| Layer | Tech Used |
|---|---|
| Frontend | React (with Next.js App Router, TypeScript) |
| Styling | Tailwind CSS |
| Backend | Next.js (API Routes),Typescript(.ts),Prisma ORM |
| Database | PostgreSQL |
| Auth | Cookie Sessions |
| Package | npm |
| IPFS & (Pinata) | Decentralized file storage |
| Solidity & Polygon | For writing and deploying our on-chain smart contract. |
| Ethers.js | To connect our backend service to the blockchain |
git clone https://github.com/sameera731/VEDATRACE.git
cd VEDATRACEMake your .env file by following the .env.example file.
npm install
You can see all project dependencies listed in package.json.
➤ Start PostgreSQL locally (make sure it's running on port 5432). Create a database called vedatrace manually OR run:
CREATE DATABASE vedatrace;
➤ Create a .env file at the root:
DATABASE_URL="postgresql://youruser:yourpassword@localhost:5432/vedatrace"
If your password includes special characters then URL-encode.
npx prisma db pull # Pull the DB schema
npx prisma generate # Generate Prisma client
Your models will be in prisma/schema.prisma.
npm run dev
Your app should now be running at: http://localhost:3000
Before You Start
-Pull the latest changes from main:
-Create a new branch:
-Make your changes and commit:
-Push and open a Pull Request: