Skip to content

isharathi2609/Ecommerce-Website-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Ecommerce-Website-Java

This is E-Commerce Website

Setup Instructions

  1. Database Setup

  2. Open your MySQL Client (e.g., Workbench, PHPMyAdmin).

  3. Open the database.sql file located in the project folder.

  4. Execute the entire script to create the ecommerce_db database and insert the default products.

  5. Important: Open src/utils/DBConnection.java and update the PASSWORD field with your MySQL password.

  6. Import into Eclipse (Dynamic Web Project)

  7. Open Eclipse IDE.

  8. Go to File > New > Dynamic Web Project.

  9. Project Name: EcommerceWebsite.

  10. Click Finish.

  11. Copy the contents of the Ecommerce-Website-Java folder (specifically src and WebContent) and paste them into your new Eclipse project directory, overwriting existing files.

  12. Right-click the project in Eclipse > Refresh.

  13. Add MySQL Connector JAR

  14. Download the MySQL Connector/J (JAR file).

  15. Copy the JAR file into WebContent/WEB-INF/lib/.

  16. (If lib folder doesn't exist, create it inside WEB-INF).

  17. Right-click the JAR in Eclipse > Build Path > Add to Build Path.

  18. Run the Project

  19. Right-click on WebContent/login.jsp (or the project root).

  20. Select Run As > Run on Server.

  21. Choose your Apache Tomcat server.

  22. The application should open in your browser.

Features Overview

  • Register: Create a new account (stored in DB).
  • Login: Enter credentials -> Check Console for 6-digit OTP -> Verify OTP.
  • Products: View products, add to cart.
  • Cart: View items, remove items, see total.
  • Checkout: Fake payment form -> Order Confirmed with Order ID.

About

This is E-Commerce Website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors