{"id":28311906,"url":"https://github.com/jasjeev013/bharat-ranch","last_synced_at":"2026-04-11T11:01:35.567Z","repository":{"id":243122344,"uuid":"811495088","full_name":"jasjeev013/bharat-ranch","owner":"jasjeev013","description":"It connects farmers and buyers for bulk transactions with minimal margins. It enables direct sales between farmers and dealers, while a chat feature facilitates seamless communication for buying, selling, and negotiating.","archived":false,"fork":false,"pushed_at":"2025-05-01T18:01:41.000Z","size":6219,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-13T18:31:46.415Z","etag":null,"topics":["bootstrap","bootstrap5","cloudinary","express","nodejs","react","reactjs","ui"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasjeev013.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-06T17:51:02.000Z","updated_at":"2025-05-01T18:01:44.000Z","dependencies_parsed_at":"2024-08-09T07:48:45.205Z","dependency_job_id":"479fbed9-a36c-4465-80a6-880c6425fbb6","html_url":"https://github.com/jasjeev013/bharat-ranch","commit_stats":null,"previous_names":["jasjeev013/bharat-ranch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jasjeev013/bharat-ranch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasjeev013%2Fbharat-ranch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasjeev013%2Fbharat-ranch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasjeev013%2Fbharat-ranch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasjeev013%2Fbharat-ranch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasjeev013","download_url":"https://codeload.github.com/jasjeev013/bharat-ranch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasjeev013%2Fbharat-ranch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31677819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","bootstrap5","cloudinary","express","nodejs","react","reactjs","ui"],"created_at":"2025-05-24T14:17:51.692Z","updated_at":"2026-04-11T11:01:35.555Z","avatar_url":"https://github.com/jasjeev013.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BharatRanch: The Ultimate Ranch\n\n![BharatRanch Banner](./public/bg-image.png) \n\n## 🌱 Revolutionizing Agricultural Commerce\n\nBharatRanch is a cutting-edge platform connecting farmers and buyers for bulk transactions with minimal margins. Our solution enables direct sales between farmers and dealers while providing seamless communication tools for negotiations and transactions.\n\n**Key Features:**\n- Direct farmer-to-dealer marketplace\n- Bulk transaction capabilities\n- Integrated chat system for negotiations\n- Equipment lending/borrowing system\n- Minimal commission structure\n\n---\n\n## 📋 Table of Contents\n1. [Tech Stack](#-tech-stack)\n2. [Features](#-features)\n3. [Installation](#-installation)\n4. [Configuration](#-configuration)\n5. [Project Structure](#-project-structure)\n6. [API Documentation](#-api-documentation)\n7. [Screenshots](#-screenshots)\n8. [Data Modeling](#-data-modeling) \n9. [Contributing](#-contributing)\n10. [Contact](#-contact)\n\n---\n\n## 🛠 Tech Stack\n\n### Frontend\n- **React** (v18) - Frontend library\n- **React Router** (v6) - Navigation\n- **Material UI** (v5) - UI components\n- **Bootstrap** (v5) - Styling framework\n- **Recoil** - State management\n- **Axios** - HTTP client\n\n### Backend\n- **Node.js** - Runtime environment\n- **Express** - Web framework\n- **MongoDB** - Database\n- **Mongoose** - ODM for MongoDB\n- **JWT** - Authentication\n- **Cloudinary** - Image storage\n\n### Development Tools\n- **Vite** - Frontend build tool\n- **Nodemon** - Development server\n- **Postman** - API testing\n\n---\n\n## ✨ Features\n\n### Marketplace\n- Farmer product listings\n- Bulk purchase requests\n- Price negotiation tools\n- Commodity categorization\n\n### Equipment Sharing\n- Equipment listing\n- Borrow request system\n- Rental management\n- Availability tracking\n\n### User Management\n- Farmer/dealer profiles\n- Role-based access\n- Secure authentication\n- Transaction history\n\n### Communication\n- Integrated chat system\n- Notification center\n- Order status updates\n\n---\n\n## 💻 Installation\n\n### Prerequisites\n- Node.js (v16+)\n- MongoDB Atlas account or local installation\n- Cloudinary account (for image storage)\n\n### Backend Setup\n1. Navigate to the backend directory:\n   ```bash\n   cd backend\n   ```\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n3. Create `.env` file:\n   ```\n   MONGODB_URI=your_mongodb_connection_string\n   JWT_SECRET=your_jwt_secret_key\n   CLOUDINARY_CLOUD_NAME=your_cloudinary_name\n   CLOUDINARY_API_KEY=your_cloudinary_key\n   CLOUDINARY_API_SECRET=your_cloudinary_secret\n   PORT=5000\n   ```\n4. Start server:\n   ```bash\n   npm start\n   ```\n\n### Frontend Setup\n1. Navigate to the project root:\n   ```bash\n   cd ..\n   ```\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n3. Create `.env` file:\n   ```\n   REACT_APP_API_BASE_URL=http://localhost:5000\n   ```\n4. Start the development server:\n   ```bash\n   npm start\n   ```\n\n---\n\n## ⚙ Configuration\n\n### Environment Variables\n\n**Backend:**\n| Variable | Description | Required |\n|----------|-------------|----------|\n| `MONGODB_URI` | MongoDB connection string | Yes |\n| `JWT_SECRET` | JWT token secret | Yes |\n| `CLOUDINARY_*` | Cloudinary credentials | Yes |\n| `PORT` | Server port (default: 5000) | No |\n\n**Frontend:**\n| Variable | Description | Required |\n|----------|-------------|----------|\n| `REACT_APP_API_BASE_URL` | Backend API base URL | Yes |\n\n---\n\n## 📂 Project Structure\n\n```\nbharat-ranch/\n├── backend/               # Backend server\n│   ├── config/           # Configuration files\n│   ├── middleware/       # Authentication middleware\n│   ├── models/           # MongoDB models\n│   ├── routes/           # API routes\n│   └── index.js          # Server entry point\n├── public/               # Static assets\n└── src/                  # Frontend source\n    ├── components/       # React components\n    ├── services/         # API services\n    ├── state/            # Recoil state management\n    ├── images/           # Image assets\n    └── ...               # Other React files\n```\n\n---\n\n## 📚 API Documentation\n\n### Base URL\n`http://localhost:5000/api/v1`\n\n### Key Endpoints\n\n**Authentication:**\n- `POST /auth/register` - User registration\n- `POST /auth/login` - User login\n\n**Commodities:**\n- `GET /commodities` - List all commodities\n- `POST /commodities` - Add new commodity\n\n**Equipment:**\n- `GET /equipment` - List all equipment\n- `POST /equipment` - Add new equipment\n\n**Transactions:**\n- `POST /buy-requests` - Create a buy request\n- `POST /borrow-requests` - Create a borrow request\n\n\n---\n\n## 📸 Screenshots\n\n### Homepage\n![Homepage](./public/homepage.png) \n\n### Farmer Dashboard\n![Farmer Dashboard](./public/farmerDashboard.png) \n\n### Marketplace\n![Marketplace](./public/marketPlace.png) \n![Marketplace](./public/marketPlace2.png) \n\n### Adding Interface\n![Chat](./public/addingComm.png) \n\n---\n## 🗄 Data Modeling\n\n### ER Diagram  \n![ER Diagram](/public/bharatRanch.png)  \n\n\n---\n\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature')\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n---\n\n## 📧 Contact\n\n**Project Team**  \n- GitHub: [@jasjeev013](https://github.com/jasjeev013)\n- Email: jasjeev99@gmail.com\n\n**Project Link:** [https://github.com/jasjeev013/bharat-ranch](https://github.com/jasjeev013/bharat-ranch)\n\n---\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasjeev013%2Fbharat-ranch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasjeev013%2Fbharat-ranch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasjeev013%2Fbharat-ranch/lists"}