Sadanand012 / Organic-vegetables

An online vegetable sales application can be a great way to connect customers with fresh, locally sourced vegetables. By offering a user-friendly interface, customers can easily browse and select from a wide variety of fruits and vegetables, customize their order, and choose a delivery or pickup option that works for them

Home Page:https://github.com/Sadanand012/Organic-vegetables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Organic_Vegetables (Online Vegetable Sales Application)

BackEnd(REST API)for an Online Vegetable Sales Application



img-20230328-wa0017_360



  • An online vegetable sales application allows customers to easily purchase fresh, locally sourced produce from their phone or computer.
  • The application features a user-friendly interface, allowing customers to browse and select from a wide variety of fruits and vegetables.
  • Customers can customize their order and choose a delivery or pickup option that works for them.
  • The backend of the application is built using Java and Spring Framework.
  • The backend handles all the business logic and communicates with the database (MySQL).
  • The backend exposes RESTful endpoints for the frontend to consume.
  • The code follows best practices for maintainability and scalability.
  • The application is continuously integrated and deployed.
  • This repository is open-source and contributions are welcome.
  • The application is built using modern technologies such as Spring Boot.
  • It includes swagger documentation for the endpoints.
  • The application follows best practices for security in terms of input validation and access control.


#E-R Diagram

ER



#WorkFlow

  • User Login
  • Admin
  • Customer
  • Cart
  • Vegetables
  • Order
  • Billing
  • Feedback
  • LogOut

  • This project is developed by a team of 5 Aspiring Developers.

Tech Stack

  • Java
  • Spring Framework
  • Spring Boot
  • Spring Data JPA
  • Hibernate
  • Mysql

Modules


  • Login, Logout Module
  • Customer Module
  • Admin Module
  • AddToCart Module
  • Order Module
  • Vegetable Stock Module

Features


  • Customer and Admin authentication & validation with user-session's session-id.
  • Admin Features:
    • Administrator Role of the entire application
    • Only registered admins with valid session IDs can add/update/delete vegetables in the database.
    • Admin can access the details of orders, bill details, and customer lists.
  • Customer Features:
    • Registering themselves with the application, and logging in to get the valid session.
    • Customer can add vegetables to the cart
    • Only logged-in user can access their all order history.

Contributors


*Sadanand Mare
*Akash Chauhan
*Prathamesh Chavan
*Vivek Chowdhary

Installation & Run

  • Before running the API server, you should update the database config inside the application.properties file.
  • Update the port number, username and password as per your local database config.
    server.port=8080
    spring.datasource.url=jdbc:mysql://localhost:3306/organic;
    spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
    spring.datasource.username=root
    spring.datasource.password=root

API Root Endpoint

https://localhost:8080/

http://localhost:8080/swagger-ui.html

About

An online vegetable sales application can be a great way to connect customers with fresh, locally sourced vegetables. By offering a user-friendly interface, customers can easily browse and select from a wide variety of fruits and vegetables, customize their order, and choose a delivery or pickup option that works for them

https://github.com/Sadanand012/Organic-vegetables


Languages

Language:Java 100.0%