Welcome to the Amazon Clone project! This repository contains a full-stack e-commerce application inspired by Amazon. The project is built with HTML, CSS, and JavaScript for the frontend, and Java, Google Guice, Hibernate JPA, REST API, and PostgreSQL for the backend.
- HTML: For structuring the web pages.
- CSS: For styling the web pages.
- JavaScript: For adding interactivity to the web pages.
- Java: For building the back-end application.
- Google Guice: For dependency injection.
- Hibernate JPA: For ORM and managing database interactions.
- REST API: To expose endpoints for various functionalities.
- PostgreSQL: As the relational database management system.
- Add Product to Cart: Users can add products to their shopping cart.
- Buy Product: Users can proceed to purchase products from their cart.
- Delete Product from Cart: Users can remove products from their shopping cart.
- Update Product: Users can update product details.
To get started with setting up the project, follow these steps:
-
Fork the Repository 🍴:
- Click the "Fork" button at the top right corner of this repository page to create your own copy of the repository.
-
Clone the Forked Repository 📂:
- Open your terminal or Git Bash.
- Clone the repository using the following command:
git clone https://github.com/<your-username>/amazon-clone.git
⚠️ ⚠️ Use this command to clone all the branch to your local and checkout the last branch created for all the features⚠️ ⚠️ :
git branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
-
Import the Maven Project 💻:
- Open your preferred IDE (such as IntelliJ IDEA or Eclipse).
- Import the cloned repository as a Maven project.
- Allow the IDE to download all the necessary Maven dependencies.
-
Configure the Database 🛠️:
- Open the
persistence.xml
file located in thesrc/main/resources/META-INF
directory. - Configure the database connection properties (such as URL, username, and password) according to your local setup.
- Open the
-
Deploy with Tomcat Server 9.0.86 🚀:
- Use Tomcat Server version 9.0.86 for deploying the application.
- Configure the server in your IDE and deploy the application.