Online store of dj equipment. shop
is written in Java 8.
This app was created just for fun and may have some bugs. If you see some, write to me.
- Spring Framework (IoC, Boot, MVC, Data, Security, Mail)
- Hibernate/JPA, Hibernate Search, Hibernate Validator
- Junit4, DBUnit
- Selenium WebDriver, Jsoup
- PostgreSQL
- JSP, JSTL, Bootstrap3
- Gradle - using
gradle build
,gradle bootRun
- Implemented shopping cart;
Cart
,CartController
- Implemented browsing for store;
BrowsingController
- Implemented authentication;
WebSecurityConfig
- Implemented administation features;
AdminController
- Implemented buying by one click;
CartController
- Implemented rating products using like/dislike
LikedCart
- Implemented searching products by text in name and description of products.
ProductService
Demo of the online store of dj equipment is available at http://dj-shop.herokuapp.com/
Demo version isn't use the full database!
If you need to see
shop
with full database, just setupshop
at your local machine
For access to admin features
login: admin
password: admin
This project use Gradle and Spring Boot Gradle Plugin for building and running the application.
If you need to see this application with some data, just import
store.dump to your local store
(you can rename database with application.properties
) PostgreSQL database.
To do this you can use pg_backups
, psql
.
After these steps you can build and run the app with prepared database.
Just write the next command: gradle build
This command will create a builded .jar
Just write the next command: gradle bootRun
Then you can get access to the application through the following URL: http://localhost:8080/
- app-data - Data layer for another modules and root project. Also in this module it was implemented shopping cart, that based on HashMap. It used JPA, Spring Data (dao contains implementation with
JDBCTemplate
, repository contains implementation withCrudRepository
,PagingAndSortingRepository
. - app-scraper - Scraping module which use app-data to save parsed data to database. It used Jsoup, Selenium WebDriver.
- root-project - It implements a bussiness logic (
service
) of this application with validation and web layer (controller
andwebapp
files).
For better understanding how shop
works, you can look at UML diagrams below
- Use case diagram
- Entity-relationship diagram
- Activity diagram of purchase
- Sequence diagram
- Communication diagram
- Logical data model
- Physical data model
- Component diagram
- Deployment diagram
- Class diagram for "View catalog" use case
- Analysis model, class diagram for "Manage cart" use case
- Analysis model, communication diagram for "Manage cart" use case
- Class diagram for "Manage cart" use case
- Class diagram 1, Class diagram 2, Class diagram 3
- Andrii Tkachenko - GitHub
MIT License
Copyright (c) 2017 Andrii Tkachenko
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.