This is a Java-based online shopping project that simulates an e-commerce platform where users can browse and purchase products.
- User registration and login
- Product catalog with categories
- Add to cart functionality
- Checkout and order processing
- User profile management
- Admin dashboard for product and user management
- Java
- MySQL (or your preferred database)
- JavaFX for the graphical user interface (GUI)
Before running the project, you need to have the following installed:
- Java Development Kit (JDK)
- MySQL (or another relational database)
- MySQL JDBC Driver
- JavaFX (included with JDK)
- Create a MySQL database for the project, e.g.,
online_shopping
. - Import the database schema from the provided
database.sql
file.
mysql -u your_username -p online_shopping < database.sql
Update the database connection details in the config.properties
file:
db.url=jdbc:mysql://localhost:3306/online_shopping
db.username=your_username
db.password=your_password
- Compile the Java code:
javac Main.java
- Run the application:
java Main
- Launch the application.
- Register as a new user or log in with an existing account.
- Browse products by category.
- Add products to your cart.
- Proceed to checkout and complete the order.
- Admins can access the admin dashboard to manage products and users.
This project is licensed under the MIT License - see the LICENSE file for details.
- Special thanks to XYZ Online Store for inspiration.