Skip to content

svahaGirl/ShopEcommerce_CaseStudy_aug29

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CaseStudy_Aug29

PerScholas Java Case Study

User Listing page:

usersListing1

Create New User:

createNewUser1

This Case Study is User Management System, which is also part one of a more complex E-commerce Shop project, that is why you see the package is called Shop.

Project structure: ShopEcommerce******* *ShopCommom: common library(Entities, roles and users); *ShopWebParent: *ShopBackEnd(controllers and service and repositories and tests, most files are here, also path of created .log under target folder. ); *ShopFrontEnd.

        #//Part 1: User management system.

Step 1: Create a maven project as ShopProject (root project)

    step 2: Create Spring boot starter project as ShopCommon 
            (common library, use jpa dependency injection,delete application file under /main/java, delete test package, add module to root pom.xml)
            
            Step 3: Create Spring boot starter project as ShopWebParent project
                    (delete UmsWebParentApplication under /main/java/, delete test package, add module to root pom.xml,
                     add all needed dependency here(jpa,thymeleaf,mysql,test, webjars......)
                    go to project properties,go to Project Natures, remove Java Maven Nature.)
                    
                    Step 4: Create Spring boot starter project as child: ShopBackEnd project 
                            (Delete UmsBackEndApplicationTests.java, config application.properties)
                             (UMSBackEnd: refactor /com.shop to /com.shop.admin, create a MainController.java, 
                                    create a template folder under resources, 
                                    create a index.html, run backend application)

                            
                    Step 5: Create Spring boot starter project as child: ShopFrontEnd (refactor /com.shop to /com.shop.site, config application.properties)
                            (create template folderand index.html, run frontent application)

Step 6:

Building User model -Create User Entity and establish connection with SQL WorkBench to create Tables -Create User Service -Create User Repository -Create User Controller

         ---------------------------------------------------------------------------------                         

user uploaded photo is under ShopBackEnd, target folder.

Project Main Structure

projectDir1

Project BackEnd Structure

backendDir1

Project Backend Structure 2

backendDir2

User authorization

ADD 404/403/500 Error page handling.

About

Complete Admin user management system, with CRUD functionalities.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors