https://github.com/aman-tiwari001/krishicoin
KrishiCoin🌾 is a peer-to-peer (P2P) and decentralized finance (DeFi) platform built on the Base Blockchain (Ethereum L2). It empowers farmers and rural communities by offering a decentralized marketplace and crowdfunding opportunities, all while addressing key issues in the Indian agriculture sector.
https://github.com/aman-tiwari001/krishicoin
base-blockchain blockchain coinbase crowdfunding defi ethereum marketplace mern-stack p2p peer-to-peer smart-contracts solidity web3
Last synced: 4 days ago
JSON representation
KrishiCoin🌾 is a peer-to-peer (P2P) and decentralized finance (DeFi) platform built on the Base Blockchain (Ethereum L2). It empowers farmers and rural communities by offering a decentralized marketplace and crowdfunding opportunities, all while addressing key issues in the Indian agriculture sector.
- Host: GitHub
- URL: https://github.com/aman-tiwari001/krishicoin
- Owner: aman-tiwari001
- Created: 2024-10-05T15:29:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-22T14:15:38.000Z (about 1 year ago)
- Last Synced: 2025-04-04T15:12:52.818Z (7 months ago)
- Topics: base-blockchain, blockchain, coinbase, crowdfunding, defi, ethereum, marketplace, mern-stack, p2p, peer-to-peer, smart-contracts, solidity, web3
- Language: JavaScript
- Homepage: https://krishicoin.vercel.app/
- Size: 3.47 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

### **📍Built At Based India**
**KrishiCoin** is a peer-to-peer (P2P) and decentralized finance (DeFi) platform built on the **Base Blockchain (Ethereum L2)**. It empowers farmers and rural communities by offering a decentralized marketplace, crowdfunding opportunities, and secure financial solutions, all while addressing key issues in the agriculture sector.
Demo Video |
Devfolio Submission Link |
Project Link
## 🌟 Key Features
### 🚜 Direct Marketplace (P2P)
- Eliminate middlemen by directly connecting farmers to companies.
- Maximize farmers' profits and reduce buyers' costs.
### 📈 Crowdfunding for Farmers
- Farmers can raise funds for social and essential causes through secure and transparent crowdfunding.
- Direct financial assistance to farmers in need.
### 🔒 Blockchain-Based Transparency
- Powered by Base Blockchain for scalability and security.
- Uses **Solidity smart contracts** to ensure trust, transparency, and decentralized operations.
### 🌐 Seamless Web3 Integration
- Built using **Ether.js** for smooth smart contract interaction.
- Integrated **Coinbase Smart Wallet** for easy onboarding and **OnchainKit** for enhanced user experience.
### 💼 Features for Rural Communities
- Peer-to-peer decentralized marketplace for direct transactions.
- Crowdfunding platform to provide access to financial support.
- **Community Writes** section for knowledge-sharing and engagement among farmers.
## 🛠️ Technical Breakdown
- **Blockchain:** Built on **Base Blockchain (Ethereum L2)** for scalability.
- **Smart Contracts:** Peer-to-peer marketplace and crowdfunding handled via **Solidity smart contracts** deployed on the Base Sepolia Testnet.
- **React Frontend:** Intuitive UI for managing orders, purchases, crop listings, and donations.
- **Coinbase Integration:** Utilizes **Coinbase Wallet**, **Smart Wallet**, and **Onramp** for easy fund management and seamless transactions.
- **Thirdweb:** Used for testing and deploying smart contracts on Base Sepolia Testnet.
## 📚 Technologies Used
- **Blockchain:** Base Blockchain (Ethereum L2)
- **Smart Contracts:** Solidity
- **Frontend:** React.js
- **Backend:** Node.js, Express.js
- **Database:** MongoDB
- **Web3 Interaction:** Ether.js
- **Wallet Integration:** Coinbase Smart Wallet
- **Deployment Tools:** Thirdweb, Vercel
- **Design & UI:** Daisy UI, Tailwind CSS
- **Other Tools:** Vite, Onchainkit, Coinbase APIs, etc













## 🚀 How to setup KrishiCoin locally ?
1. **Clone the repository:**
```bash
git clone https://github.com/aman-tiwari001/KrishiCoin.git
2. **Navigate to the client directory and install dependencies:**
```bash
cd client
npm install
```
3. **Create a .env file in the client directory and add the following environment variables:**
```bash
VITE_COINBASE_PROJECT_ID="your-coinbase-project-id"
VITE_ONCHAINKIT_API_KEY="your-onchainkit-api-key"
VITE_APP_SERVER_URL="http://localhost:4000"
```
4. **Navigate to the server directory and install dependencies:**
```bash
cd ../server
npm install
```
5. **Create a .env file in the server directory and add the following environment variables:**
```bash
MONGODB_URI="mongodb://127.0.0.1:27017/krishicoin"
JWT_SECRET="krishicoin123"
```
6. **Start the server:**
```bash
npm run dev
```
6. **Start the client:**
```bash
cd ../client
npm run dev
```
🎉 Congratulations! You have successfully set up the project locally.
## App Screenshots











## Video Demonstration
https://youtu.be/kvNMvvIIpbE?si=JIYzzw-gcnl03F4M