Krishipath is a Java-based web application designed to connect farmers, buyers, and suppliers. It leverages JSP, Servlets, and an SQL database to streamline agricultural trade, ensuring fair pricing and accessibility. The platform runs on Apache Tomcat and is built using Maven for efficient project management.
- Farmer-to-Buyer Connectivity: Direct trade for fair pricing.
- Product Listings: Buy and sell agricultural products, tools, and services.
- Secure Transactions: Reliable and secure payment processing.
- Logistics Management: Integrated delivery and tracking.
- Educational Resources: Farming tips and market insights.
- Backend: Java (JSP and Servlets)
- Frontend: HTML, CSS, JavaScript (JSP for dynamic views)
- Build Tool: Maven
- Server: Apache Tomcat
- Database: MySQL
- IDE Recommended: IntelliJ IDEA / Eclipse
- Java Development Kit (JDK): Version 8 or higher.
- Apache Maven: Installed and configured.
- Apache Tomcat Server: Version 9.x or higher.
- MySQL Server: Installed and running.
-
Clone the Repository:
git clone https://github.com/yourusername/krishipath.git cd krishipath
-
Set Up the Database:
- Create a MySQL database (e.g.,
krishipath_db
). - Execute the SQL scripts located in
/sql
to create tables and seed data.
- Create a MySQL database (e.g.,
-
Configure Database Connection:
- Update database credentials in
src/main/resources/db-config.properties
:db.url=jdbc:mysql://localhost:3306/krishipath_db db.user=root db.password=yourpassword
- Update database credentials in
-
Build the Project:
mvn clean install
-
Deploy on Tomcat:
- Copy the generated
.war
file fromtarget/
to your Tomcat server'swebapps
directory. - Start the Tomcat server.
- Copy the generated
-
Access the Application:
- Open your browser and navigate to:
http://localhost:8080/krishipath
- Open your browser and navigate to:
krishipath/
├── src/
│ ├── main/
│ │ ├── java/ # Java source files (Servlets, Services, etc.)
│ │ ├── webapp/ # JSP files and static resources (CSS, JS)
│ │ └── resources/ # Configuration files (e.g., db-config.properties)
│ ├── test/ # Unit tests
├── pom.xml # Maven build file
├── README.md # Project documentation
└── sql/ # SQL scripts for database setup
Contributions are welcome! Please fork the repository, create a new branch, and submit a pull request with your changes.
This project is licensed under the MIT License.
For any inquiries or support, please reach out to naveennmehta@gmail.com