Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackytank committed Dec 26, 2022
1 parent 94fec42 commit a68680b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
![shoeshy-logo](https://user-images.githubusercontent.com/52403567/202708244-38f7033e-ec32-4124-b807-4fa6b034823f.png)
## ShoeShy - Shoe store website

A final graduation project at FPT Polytechnic, a shoe store website made with Spring Boot, payment integration with Paypal Sandbox, there is 3 roles: USER, ADMIN, and STAFF. USER can only visit homepage while STAFF and ADMIN can visit both homepage and admin page. User can sign in and sign up with normal account or with OAuth2 account (GG,FB), edit profile, see orders history, reset password, and checkout with or without voucher, search & sort products. ADMIN and STAFF can visit admin page, view Dashboard, CRUD User, Product, Order, Category & SubCategory, Voucher, and have authorizing privilege, export data to excel, pdf, csv, upload excel, pdf, csv to db (to be added), payment with NEAR (to be added). Testing with JUnit that can read Excel data then export results to Excel.
A final graduation project at FPT Polytechnic, a shoe store website made with Spring Boot, payment integration with Paypal Sandbox, there are 4 roles: USER, ADMIN, SHIPPER and STAFF. USER can only visit homepage, SHIPPER can visit both homepage and shipper page while STAFF and ADMIN can visit both homepage and admin page. User can sign in and sign up with normal account or with OAuth2 account (GG,FB), edit profile, change password, add favorite products, print order receipt, see orders history, reset password, and checkout with or without voucher, search & sort products. ADMIN and STAFF both can visit admin page, view Dashboard, CRUD User, Product, Order, Category & SubCategory, Voucher, only ADMIN have authorizing privilege, export data to excel, pdf, csv, upload excel, pdf, csv to db (to be added). Testing with TestNG that can read Excel data then export results to Excel.

Stack used:
* Stack:
- Frontend: AngularJS, Thymeleaf, MDBootstrap 5, JQuery
- Backend: Spring Boot, Spring Data JPA, Spring Security, OAuth2
- Database: SQL Server 2019 (Somee.com)
- Testing: JUnit
- Testing: TestNG
* Software:
- Visual Studio Code + Spring Boot extension
- [Adoptium Temurin JDK 17](https://adoptium.net/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ protected void configure(HttpSecurity http) throws Exception {
"/rest/orders/revenue",
"/rest/sub-categories/product-sold")
.hasAnyRole("ADMIN", "STAFF")
.antMatchers("/order/shipper").hasRole("SHIPPER")
.antMatchers("/order/shipper").hasRole("SHIPPER")
.antMatchers(HttpMethod.GET, "/rest/authorities/**").hasAnyRole("STAFF", "ADMIN")
.antMatchers(HttpMethod.POST, "/rest/authorities/**").hasRole("ADMIN")
.antMatchers(HttpMethod.DELETE, "/rest/authorities/**").hasRole("ADMIN")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public ResponseEntity<Product> create(@RequestBody Product product) {
if (product.getSale_off() == null || product.getSale_off() <= 0) {
product.setSale_off((double) 0);
}
if (product.getPrice() == null || product.getPrice() <= 0) {
if (product.getPrice() == null || product.getPrice() <= 0) {
return ResponseEntity.badRequest().build();
}
if (product.getStock() == null || product.getStock() <= 0) {
Expand Down

0 comments on commit a68680b

Please sign in to comment.