Giter Club home page Giter Club logo

building-an-e-commerce-store-using-java-spring-framework's Introduction

On our website JavaLabs we study video courses about java development.

If you will watch any courses, read books and etc about java development and will want to share your decision or discuss any problems, just contact us. We can create discussion board.

It is much more interesting when group of developers working on one project.

Marley


[Udemy] Building An E-Commerce Store Using Java Spring Framework [ENG, 2016]

https://www.udemy.com/building-an-e-commerce-store-using-java-spring-framework/

If you will register on udemy.com and click on "Start Free Preview", аfter some period you can receive (by email) big discount on this course.

Application


Environment: JDK 1.8.0_72, TomCat 8.0, IDEA 15.0.3
Technologies: Spring MVC 4.2, Spring Security 3.2.5, Spring WebFlow 2.3.3, Hibernate 4.0.1, H2 database 1.4.191, Twitter Bootstrap 3.3.6, JQuery 1.12.0

I'm working on Ubuntu 14.04 Linux LTS


04 Online Music Store Website Part 1 - Landing Page, Product Model and Product List

009 Develop A Landing Page with Bootstrap Framework

http://getbootstrap.com/examples/carousel/

010 Add the Landing Page to IDE - Part 1

IDEA:

New Project --> Maven --> Create from archetype --> Next

GroupId: com.mywebsite
ArticactId: emusicstore

Next

Project name: eMusicStore

Finish

ProjectName --> right click

Add framework support --> Spring --> Spring MVC --> Finish

mkdir src/main/webapp
mv WEB-INF src/main/webapp

File --> Project Structure --> Facets

Web --> Update: Deployment Descriptors and Web Resource Directories.
Spring --> Remove duplicate Application Context

File --> Project Structure --> Artifacts

Select Spring and Spring MVC --> Put into WEB-INF/lib


011 Add the Landing Page to IDE - Part 2

File --> Project Structure --> Artifacts

Select Maven:jstl and Maven:Taglibs --> Put into WEB-INF/lib


012 Adding the Product Domain Model

http://localhost:8080/productList/


013 Build the Product List using Bootstrap Table Components

http://localhost:8080/


014 Add Common Template and Product Detail Page

http://localhost:8080/productList/viewProduct


015 Develop Dynamic Page to Show Product Data

http://localhost:8080/productList/viewProduct/P121


05 Online Music Store Website Part 2 - Spring Data with ORM, Hibernate and JPA

017 ORM Object-Relational-Mapping

Theory

018 Add Database Function with Spring Hibernate and Java Persistence - Part 1

http://h2database.com/html/main.html

$ cd /mnt/dsk0/downloads/h2/bin
$ chmod +x ./h2.sh
$ ./h2.sh

or

$ java -jar h2-1.3.176.jar

http://127.0.1.1:8082/

019 Add Database Function with Spring Hibernate and Java Persistence - Part 2

http://localhost:8080/productList/

http://127.0.1.1:8082/

Add next records to DataBase:

ProductId: 1
ProductCategory: Instrument
ProductCondition: New
ProductDescription: Ihis is a description
ProductManufacturer: Manu1
ProductName: Guitar1
ProductPrice: 123.1
ProductStatus: Active
ProductInStock: 11

ProductId: 2
ProductCategory: Record
ProductCondition: Used
ProductDescription: Record description
ProductManufacturer: Manu2
ProductName: Record1
ProductPrice: 23.0
ProductStatus: Active
ProductInStock: 23

File --> Project Structure --> Artifacts

Select libs --> Put into WEB-INF/lib

http://localhost:8080/productList/

2 record should be shown on website

Application

020 Develop Add-Product Function - Part 1

http://localhost:8080/admin/

021 Develop Add-Product Function - Part 2

http://localhost:8080/admin/productInventory/addProduct

022 Add Product Image - Part 1

023 Add Product Image - Part 2

File --> Project Structure --> Artifacts

Output directory: /mnt/dsk0/projects/dev/Building-an-e-commerce-store-using-java-spring-framework/src/main/webapp

Select new jar --> Put into WEB-INF/lib

http://localhost:8080/admin/productInventory

Now we can add and remove images.

024 Add Update-Product Function - Part 1

025 Add Update-Product Function - Part 2

026 Page Layout Revisit

027 Validation

pom.xml

org.hibernate
javax.validation

File --> Project Structure --> Artifacts

Select new jar --> Put into WEB-INF/lib


06 Online Music Store Website Part 3 - Spring Security, Shopping Cart Functionality

029 Spring Security - Part 1

pom.xml new dependency

spring-context
spring-security-core
spring-security-web
spring-security-config

CSRF - Cross Site Request Forgery

030 Spring Security - Part 2

https://docs.spring.io/spring-security/site/docs/3.0.x/reference/appendix-schema.html

create table users(
    username varchar_ignorecase(50) not null primary key,
    password varchar_ignorecase(50) not null,
    enabled boolean not null);

create table authorities (
    username varchar_ignorecase(50) not null,
    authority varchar_ignorecase(50) not null,
    constraint fk_authorities_users foreign key(username) references users(username));
    create unique index ix_auth_username on authorities (username,authority);

add to USERS

admin admin 1

add to AUTHORITIES

admin ROLE_USER

File --> Project Structure --> Artifacts

Select new jar --> Put into WEB-INF/lib

http://localhost:8080/login

031 Shopping Cart - Part 1

pom.xml new dependency

jackson-core
jackson-annotations
jackson-databind

File --> Project Structure --> Artifacts

Select new jar --> Put into WEB-INF/lib

032 Shopping Cart - Part 2

033 Shopping Cart - Part 3

034 Shopping Cart - Part 4

035 Shopping Cart - Part 5

Application


07 Online Music Store Website Part 4 - Developing a More Sophisticated System

037 System Flow and Entity Relationship Diagrams

Application

Application

038 Adding Various Models - Part 1

039 Adding Various Models - Part 2

040 Product Admin Control - Part 1

http://localhost:8080/product/productList

041 Product Admin Control - Part 2

drop table USERS;
drop table AUTHORITIES

redeploy app

After that:

add to USERS table:

USERSID: 1
CUSTOMERID: 1
ENABLED: 1
PASSWORD: admin
USERNAME: admin

add to AUTHORITIES table:

AUTHORITIESID: 1
AUTHORITY: ROLE_ADMIN
USERNAME: admin

http://localhost:8080/login
http://localhost:8080/admin

042 Product Admin Control - Part 3

043 Product Admin Control - Part 4

drop table PRODUCT;

redeploy app

044 Customer Registration - Part 1

045 Customer Registration - Part 2

Application

046 Cart Controller - Part 1

047 Cart Controller - Part 2

File --> Project Structure --> Artifacts

Select new jar --> Put into WEB-INF/lib

Remove deprecated spring-security packages

Apply

048 Cart REST Services - Part 1

Application

049 Cart REST Services - Part 2

050 Cart REST Services - Part 3

Application


08 Online Music Store Website Part 5 - Order Checkout - Spring Web Flow

051 Add Customer Order

052 Spring Web Flow Config

Application

pom.xml new dependency

org.springframework.webflow

File --> Project Structure --> Artifacts

Select new jar --> Put into WEB-INF/lib

053 Add Web Flow Pages - Part 1

054 Add Web Flow Pages - Part 2

Application

Application

Application

055 Customer Admin and Registration Validation

Application

Application

056 Add Data Table

https://datatables.net/

057 Finish Adding Data Table and Add Contact

================

Looks like this course is not ended yet ...

building-an-e-commerce-store-using-java-spring-framework's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.