├── .gitignore ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── .travis.yml ├── LICENSE ├── README.md ├── docs └── _config.yml ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── syqu │ │ └── shop │ │ ├── Application.java │ │ ├── StartupData.java │ │ ├── config │ │ ├── WebMvcConfig.java │ │ └── WebSecurityConfig.java │ │ ├── controller │ │ ├── CartController.java │ │ ├── HomeController.java │ │ ├── LoginController.java │ │ ├── ProductController.java │ │ ├── RegisterController.java │ │ └── UserController.java │ │ ├── domain │ │ ├── Category.java │ │ ├── Product.java │ │ └── User.java │ │ ├── repository │ │ ├── CategoryRepository.java │ │ ├── ProductRepository.java │ │ └── UserRepository.java │ │ ├── service │ │ ├── CategoryService.java │ │ ├── ProductService.java │ │ ├── ShoppingCartService.java │ │ ├── UserService.java │ │ └── impl │ │ │ ├── CategoryServiceImpl.java │ │ │ ├── ProductServiceImpl.java │ │ │ ├── ShoppingCartServiceImpl.java │ │ │ ├── UserDetailsServiceImpl.java │ │ │ └── UserServiceImpl.java │ │ └── validator │ │ ├── ProductValidator.java │ │ └── UserValidator.java └── resources │ ├── application.properties │ ├── banner.txt │ ├── i18n │ ├── messages.properties │ └── messages_pl.properties │ ├── static │ ├── css │ │ └── style.css │ ├── favicon.ico │ ├── images │ │ ├── brand.png │ │ ├── brand.svg │ │ ├── cart.png │ │ └── example1.PNG │ └── js │ │ └── lang.js │ └── templates │ ├── about.html │ ├── cart.html │ ├── error │ ├── 403.html │ ├── 404.html │ ├── 500.html │ └── error.html │ ├── fragments │ ├── footer.html │ └── header.html │ ├── home.html │ ├── login.html │ ├── product.html │ ├── register.html │ └── user.html └── test └── java └── com └── syqu └── shop ├── ApplicationTests.java ├── controller ├── CartControllerMvcTests.java ├── ControllersTests.java ├── HomeControllerMvcTests.java └── LoginControllerMvcTests.java ├── creator ├── ProductCreator.java └── UserCreator.java ├── model ├── ProductEntityTests.java └── UserEntityTests.java ├── repository ├── ProductRepositoryTests.java └── UserRepositoryTests.java └── service ├── ProductServiceTests.java ├── ShoppingCartServiceTests.java └── UserServiceTests.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/README.md -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/docs/_config.yml -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/Application.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/Application.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/StartupData.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/StartupData.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/config/WebMvcConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/config/WebMvcConfig.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/config/WebSecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/config/WebSecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/controller/CartController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/controller/CartController.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/controller/HomeController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/controller/HomeController.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/controller/LoginController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/controller/LoginController.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/controller/ProductController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/controller/ProductController.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/controller/RegisterController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/controller/RegisterController.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/controller/UserController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/controller/UserController.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/domain/Category.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/domain/Category.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/domain/Product.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/domain/Product.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/domain/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/domain/User.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/repository/CategoryRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/repository/CategoryRepository.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/repository/ProductRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/repository/ProductRepository.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/repository/UserRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/repository/UserRepository.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/service/CategoryService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/service/CategoryService.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/service/ProductService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/service/ProductService.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/service/ShoppingCartService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/service/ShoppingCartService.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/service/UserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/service/UserService.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/service/impl/CategoryServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/service/impl/CategoryServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/service/impl/ProductServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/service/impl/ProductServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/service/impl/ShoppingCartServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/service/impl/ShoppingCartServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/service/impl/UserDetailsServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/service/impl/UserDetailsServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/service/impl/UserServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/validator/ProductValidator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/validator/ProductValidator.java -------------------------------------------------------------------------------- /src/main/java/com/syqu/shop/validator/UserValidator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/java/com/syqu/shop/validator/UserValidator.java -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/application.properties -------------------------------------------------------------------------------- /src/main/resources/banner.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/banner.txt -------------------------------------------------------------------------------- /src/main/resources/i18n/messages.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/i18n/messages.properties -------------------------------------------------------------------------------- /src/main/resources/i18n/messages_pl.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/i18n/messages_pl.properties -------------------------------------------------------------------------------- /src/main/resources/static/css/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/static/css/style.css -------------------------------------------------------------------------------- /src/main/resources/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/static/favicon.ico -------------------------------------------------------------------------------- /src/main/resources/static/images/brand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/static/images/brand.png -------------------------------------------------------------------------------- /src/main/resources/static/images/brand.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/static/images/brand.svg -------------------------------------------------------------------------------- /src/main/resources/static/images/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/static/images/cart.png -------------------------------------------------------------------------------- /src/main/resources/static/images/example1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/static/images/example1.PNG -------------------------------------------------------------------------------- /src/main/resources/static/js/lang.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/static/js/lang.js -------------------------------------------------------------------------------- /src/main/resources/templates/about.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/about.html -------------------------------------------------------------------------------- /src/main/resources/templates/cart.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/cart.html -------------------------------------------------------------------------------- /src/main/resources/templates/error/403.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/error/403.html -------------------------------------------------------------------------------- /src/main/resources/templates/error/404.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/error/404.html -------------------------------------------------------------------------------- /src/main/resources/templates/error/500.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/error/500.html -------------------------------------------------------------------------------- /src/main/resources/templates/error/error.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/error/error.html -------------------------------------------------------------------------------- /src/main/resources/templates/fragments/footer.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/fragments/footer.html -------------------------------------------------------------------------------- /src/main/resources/templates/fragments/header.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/fragments/header.html -------------------------------------------------------------------------------- /src/main/resources/templates/home.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/home.html -------------------------------------------------------------------------------- /src/main/resources/templates/login.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/login.html -------------------------------------------------------------------------------- /src/main/resources/templates/product.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/product.html -------------------------------------------------------------------------------- /src/main/resources/templates/register.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/register.html -------------------------------------------------------------------------------- /src/main/resources/templates/user.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/main/resources/templates/user.html -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/ApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/ApplicationTests.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/controller/CartControllerMvcTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/controller/CartControllerMvcTests.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/controller/ControllersTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/controller/ControllersTests.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/controller/HomeControllerMvcTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/controller/HomeControllerMvcTests.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/controller/LoginControllerMvcTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/controller/LoginControllerMvcTests.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/creator/ProductCreator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/creator/ProductCreator.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/creator/UserCreator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/creator/UserCreator.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/model/ProductEntityTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/model/ProductEntityTests.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/model/UserEntityTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/model/UserEntityTests.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/repository/ProductRepositoryTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/repository/ProductRepositoryTests.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/repository/UserRepositoryTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/repository/UserRepositoryTests.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/service/ProductServiceTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/service/ProductServiceTests.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/service/ShoppingCartServiceTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/service/ShoppingCartServiceTests.java -------------------------------------------------------------------------------- /src/test/java/com/syqu/shop/service/UserServiceTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/syqu22/spring-boot-shop-sample/HEAD/src/test/java/com/syqu/shop/service/UserServiceTests.java --------------------------------------------------------------------------------