Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 9 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 (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-22T14:15:38.000Z (2 months ago)
- Last Synced: 2024-10-23T13:31:23.138Z (2 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
![KrishiCoin](https://github.com/user-attachments/assets/c1de3085-9dc1-4179-86c1-de116c41fe44)
### **๐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
![React.js](https://img.shields.io/badge/React-61DAFB?style=for-the-badge&logo=react&logoColor=white)
![Node.js](https://img.shields.io/badge/Node.js-68A063?style=for-the-badge&logo=nodedotjs&logoColor=white)
![Express.js](https://img.shields.io/badge/Express.js-4D4D4D?style=for-the-badge&logo=express&logoColor=white)
![JWT](https://img.shields.io/badge/JWT-FFBF00?style=for-the-badge&logo=jsonwebtokens&logoColor=black)
![MongoDB](https://img.shields.io/badge/MongoDB-47A248?style=for-the-badge&logo=mongodb&logoColor=white)
![Git](https://img.shields.io/badge/Git-F05032?style=for-the-badge&logo=git&logoColor=white)
![Tailwind CSS](https://img.shields.io/badge/Tailwind%20CSS-38B2AC?style=for-the-badge&logo=tailwind-css&logoColor=white)
![DaisyUI](https://img.shields.io/badge/DaisyUI-5A0EF8?style=for-the-badge&logo=daisyui&logoColor=white)
![Vite](https://img.shields.io/badge/Vite-646CFF?style=for-the-badge&logo=vite&logoColor=white)
![Vercel](https://img.shields.io/badge/Vercel-000000?style=for-the-badge&logo=vercel&logoColor=white)
![Ethereum](https://img.shields.io/badge/Ethereum-3C3C3D?style=for-the-badge&logo=ethereum&logoColor=white)
![Solidity](https://img.shields.io/badge/Solidity-3B3B3B?style=for-the-badge&logo=solidity&logoColor=white)
![Web3.js](https://img.shields.io/badge/Web3.js-4B7BE5?style=for-the-badge&logo=web3.js&logoColor=white)## ๐ 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
![Screenshot 2024-10-20 210057](https://github.com/user-attachments/assets/5b14f8d6-b56d-4522-8aab-266cf01a6af8)
![Screenshot 2024-10-20 210136](https://github.com/user-attachments/assets/7153513f-b527-4257-8961-5bba3a01acbd)
![Screenshot 2024-10-20 210250](https://github.com/user-attachments/assets/6bf1dd42-2cf7-4790-9534-c8df817b9b8d)
![Screenshot 2024-10-20 210524](https://github.com/user-attachments/assets/e23f53e6-c7d2-47a6-8569-05f363a36ec6)
![Screenshot 2024-10-20 210413](https://github.com/user-attachments/assets/46dd8256-a6e5-4fb7-9800-96015ca812b7)
![Screenshot 2024-10-20 210425](https://github.com/user-attachments/assets/cccc5eec-5d0f-465c-b6de-c444db22348d)
![Screenshot 2024-10-20 210319](https://github.com/user-attachments/assets/9926c9db-0c0f-4c87-8a45-3d860947f239)
![Screenshot 2024-10-20 210342](https://github.com/user-attachments/assets/1411ac94-7d12-4d8d-93db-c2d3c95fed1e)
![Screenshot 2024-10-20 210616](https://github.com/user-attachments/assets/87b85cce-641e-4166-9199-3f69a1df13ce)
![Screenshot 2024-10-22 142923](https://github.com/user-attachments/assets/2edf4a3e-7166-4d67-84c8-5252354dbe53)
![image](https://github.com/user-attachments/assets/a80602e4-a639-4dce-83dd-dd64d9b4f52a)## Video Demonstration
https://youtu.be/kvNMvvIIpbE?si=JIYzzw-gcnl03F4M