AgriMart revolutionizes the way you buy and sell agricultural products. Connect directly with farmers, access fresh produce, and enjoy a seamless shopping experience. Empowering farmers, enhancing access. AgriMart – your farm-to-table solution.
- Project Overview
- Features
- Technologies Used
- Installation
- Usage
- Project Structure
- Contributing
- License
- Contact
AgriMart is a MERN stack project aimed at connecting consumers directly with farmers to buy and sell agricultural products. This platform enhances access to fresh produce and empowers farmers by providing a direct sales channel.
- Direct Farmer Connections: Connect directly with local farmers to purchase fresh agricultural products.
- Seamless Shopping Experience: User-friendly interface for browsing and purchasing products.
- Enhanced Access: Improved access to fresh produce for consumers and direct market access for farmers.
- MongoDB: Database for storing user and product information.
- Express.js: Backend framework for building the server and API.
- React: Frontend library for building the user interface.
- Node.js: Runtime environment for server-side JavaScript execution.
To set up the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/menavipandey/Agri-Mart.git
-
Navigate to the project directory:
cd Agri-Mart
-
Install server dependencies:
cd server npm install
-
Install client dependencies:
cd ../client npm install
-
Set up environment variables: Create a
.env
file in theserver
directory and add the following:MONGO_URI ="use_your_Mongodb_url" JWT_SECRET=use_you_jwt_secret_key
-
Start the server:
cd ../server npm start
-
Start the client: Open a new terminal window and navigate to the
client
directory:npm start
- Visit
http://localhost:3000
to view the AgriMart frontend. - Register as a user to start buying or selling agricultural products.
- Browse available products, add items to your cart, and complete your purchase.
- Farmers can add new products to sell directly to consumers.
Agri-Mart/
│
├── client/ # React frontend
│ ├── public/ # Public assets
│ └── src/ # React components and application logic
│ └── ...
│
├── server/ # Express backend
│ ├── config/ # Configuration files
│ ├── controllers/ # Request handlers
│ ├── models/ # Mongoose models
│ ├── routes/ # API routes
│ └── ...
│
└── README.md # This README file
Contributions are welcome! If you have any suggestions or improvements, please create a pull request or open an issue.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/YourFeature
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or feedback, please contact us at:
- Email: navipandey67@gmail.com
Thank you for using AgriMart – your farm-to-table solution!