- The E-Commerce Application is built using Java and Spring MVC, with security, scalability, and ease of maintenance. The backend uses Spring Data JPA to interact with a Postgres database, making it easy to manage and store important entities such as users, products, categories, orders, and more.
- Spring (Data, Security, MVC etc)
- JPA / Hibernate
- PostgreSQL
- Thymeleaf
- HTML, CSS, Bootstrap
- JS, Swiper
- Maven
- SQL Query
- Clone the repository
- Open the project in your IDE: IntelliJ IDEA (recommended) or Eclipse
- Run PostgreSQL Scripts found in
PSQL-Scripts
- Configure the database connection in
application.properties
file (check the Database section below for more info) - Run the project (by running the
main
method inECommerceApplication.java
) - Open http://localhost:8080/ in your browser!
- If you ran the
users-roles.sql
script on the database, you can log in with the following credentials as admin; otherwise you'll have to manually create an user in the database:- Email:
admin@ecommerce.com
- Password:
pass123word
- Email:
- Or you can register a new user!
- If you ran the
PostgreSQL is used as the database for this project. The database connection can be configured in the application.properties
file, with the appropriate values for the following properties:
db.url=jdbc:postgresql://[ip address of db]:[port of db]/ecommjava?createDatabaseIfNotExist=true
db.username=[username]
db.password=[password, if any]
- Controller
- Registration
- HomePage
- Category
- Product
- Cart
- Model
- Roles
- Customer
- Category
- Product
- Cart
- CartItem