Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 2.08 KB

README.md

File metadata and controls

61 lines (46 loc) · 2.08 KB

E-commerce-

An interactive web application full stack project for users to add products(admin only), put listing products to the shopping cart, and check out the items in the shopping cart.

Tech Stack

  • Front end: JavaScript
  • Back end: JAVA8(Eclipse JEE)
  • Database: MYSQL
  • Java servlet: Apache Tomcat v9.0
  • Framework: Spring, Hibernate

Configuration

  • Spring Security(in memory for admin and JDBC for users)
  • Applications(dataSource, sessionFactory, multipartResolver)
  • pom.xml(frameworks support)
  • server.xml in your server(add a folder to store product images)

Spring Bean

In order to use inversion of control and dependency injection, we need to use configure classes as Spring Beans. They are done in my xml files.

Controller

I use Spring MVC to deal with HTTP request and response. image

  • HomePage(login and logout)
  • Register
  • Cart(show cart items)
  • CartItem(add and remove items)
  • Order
  • Product(list all products)

login

image

logout

image

register

image

shopping cart

image

product listing

image

Database

I use Hibernate to support database CRUD operations instead of using SQL scripts. In the model package, I build each schema as class, and the dao package provides database operation methods. image

Spring Web Flow

details

image

confirm

image

receipt

image

done

image