Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erenisci/super-advanced-shopping-automation
Super-Advanced-Shopping-Automation is a shopping automation system built using Java and JSP.
https://github.com/erenisci/super-advanced-shopping-automation
java jsp
Last synced: about 6 hours ago
JSON representation
Super-Advanced-Shopping-Automation is a shopping automation system built using Java and JSP.
- Host: GitHub
- URL: https://github.com/erenisci/super-advanced-shopping-automation
- Owner: erenisci
- License: mit
- Created: 2023-10-13T10:54:11.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-24T00:54:03.000Z (5 months ago)
- Last Synced: 2024-06-24T02:09:00.892Z (5 months ago)
- Topics: java, jsp
- Language: Java
- Homepage:
- Size: 10.8 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Super-Advanced-Shopping-Automation Project
## Project Overview
Super-Advanced-Shopping-Automation is a web application developed using Java, JSP, Maven, Apache Tomcat, and MySQL. It allows users to register, log in, shop for products, and view their purchase history.
## Technologies Used
- Java
- JSP (JavaServer Pages)
- Maven
- Apache Tomcat
- MySQL## Installation
Follow these steps to install and run the project locally:
### Clone the repository
```bash
$ git clone https://github.com/erenisci/Super-Advanced-Shopping-Automation.git
$ cd Super-Advanced-Shopping-Automation
```## Build the project
```bash
$ mvn clean install
```## Set up the database
- Create a MySQL database named projectdb.
- Import the database schema from content/urunKategoriKullanici.sql file.
```bash
$ mysql -u username -p projectdb < content/urunKategoriKullanici.sql
$ cd Super-Advanced-Shopping-Automation
```## Run the project
- $ mvn tomcat7:run
```bash
$ mvn tomcat7:run
```## Features
- User Management:
- Register and login functionalities.
- Shopping:
- Browse products and add them to the cart.
- Order History:
- View past orders and details.## Alternative Approach: Using Database Instead of Cookies for Session and Cart Management
In this project, an alternative approach has been implemented to manage sessions and shopping carts using the database instead of cookies. This ensures better security and scalability.
#### How It Works
- Session Management:
- User sessions are stored in the database using a session table (sessions) with fields like session_id, user_id, expiry_time, etc.
- Shopping Cart Management:
- Each user's shopping cart items are stored in a database table (shopping_cart) associated with the user_id. This table includes fields such as user_id, product_id, quantity, etc.
- Implementation Details:
- The application uses SQL queries to manage sessions and shopping carts.
- Example SQL statements are provided in content/database.sql.## Usage
#### Registration
- Navigate to the registration page.
- Fill out the required fields and submit the form.#### Login
- After registration, login with your credentials.
#### Shopping
- Browse through available products.
- Add desired items to the shopping cart.#### Order History
- View previous orders and their details.
## Contributing
Contributions are welcome! Please fork the repository and create a pull request for any new features or fixes.
## License
This project is licensed under the [MIT License](./LICENSE). See the LICENSE file for details.
## Contact
For any questions or feedback, feel free to reach out:
E-mail: [email protected]