Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 2.84 KB

README.md

File metadata and controls

68 lines (48 loc) · 2.84 KB

🛒 Amazon Clone

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.

Follow the steps Below to sucessfully run the project locally ⏬⏬⚠️

Images 📸

Home Page

image

Cart with Added Items

image

Technologies Used 🛠️

Frontend

  • HTML: For structuring the web pages.
  • CSS: For styling the web pages.
  • JavaScript: For adding interactivity to the web pages.

Backend

  • 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.

Features 🌟

  • 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.

Project Setup 🚀

To get started with setting up the project, follow these steps:

  1. Fork the Repository 🍴:

    • Click the "Fork" button at the top right corner of this repository page to create your own copy of the repository.
  2. 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
  3. 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.
  4. Configure the Database 🛠️:

    • Open the persistence.xml file located in the src/main/resources/META-INF directory.
    • Configure the database connection properties (such as URL, username, and password) according to your local setup.
  5. 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.