Welcome to this step-by-step guide on creating an E-commerce web store for perfume using Spring Boot! In this article, we will cover the core functionalities of the application, the technologies used, and how you can troubleshoot common issues. Whether you’re a beginner or looking for a refresher, this blog aims to be user-friendly and informative.
Project Overview
The perfume web store is an E-commerce project that allows customers to register, log in, and navigate through products. They can add items to their shopping cart, order products, and manage their user profiles. Admins have additional functionalities to manage products and user accounts effectively.
Technologies Used
- Spring (Boot, Data, Security)
- JPA Hibernate
- PostgreSQL
- Thymeleaf
- Bootstrap, CSS
- Maven
- Junit, Mockito
- Lombok
Key Features
Here are some of the core features of the application:
- Users can register and log in to their accounts.
- Users can browse products and view them in detail.
- Users can search for products based on different criteria.
- Users can add and remove items from their shopping cart.
- Users can place orders directly from their cart.
- Users can modify their passwords and view their order history.
- Admins can add or modify product listings.
- Admins can modify user data and view orders placed by all users.
Code Explanation with an Analogy
Imagine you are creating a perfume boutique. Each component of your application relates to an essential part of the boutique:
- Spring Boot: This is your boutique’s structure, providing the foundation and layout to build upon.
- JPA Hibernate: Think of this as your inventory management system, helping keep track of all perfumes available in your store.
- PostgreSQL: This is your storage room where all product data is securely kept.
- Thymeleaf: This serves as your display window, showcasing perfumes beautifully to attract customers.
- Bootstrap and CSS: Together, they are responsible for the overall look and feel of your boutique, ensuring customers have a pleasant shopping experience.
Screenshots of the Project
Here are some screenshots demonstrating the various pages of the perfume web store:
- Menu Page: 
- Product Page: 
- Shopping Cart: 
- Order Page: 
- Email Template: 
- List of Orders: 
- User Profile Page: 
- Add Perfume Page: 
Troubleshooting Tips
While building your web store, you might face some common issues. Here are some troubleshooting ideas:
- Login Issues: Ensure you are using the correct credentials:
- Customer: Login: test123@test.com, Password: admin
- Admin: Login: admin@gmail.com, Password: admin
- Database Connection: Verify your PostgreSQL database configuration and ensure the database server is running.
- API Endpoint Errors: Check the URL you’re accessing; ensure it’s correctly configured in your application.
- Frontend Issues: If pages are not displaying as expected, ensure you’ve included the necessary Bootstrap and CSS files.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Conclusion
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.
We hope you’ve found this guide useful! Happy coding!

