You need to install Java JDK 8
Follow the link and download the JDK
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
or try this other link
https://files-cdn.liferay.com/mirrors/download.oracle.com/otn-pub/java/jdk/8u121-b13/
From a terminal go to your project folder
example: /home/your_user/Documentos/personal-proyects/SellSystem
cd ${your_project_folder}
To runthe project execute the follow command
- In Linux
./mvnw
- In Windows
mvnw
If this commands not work try this:
Download Apache Maven
https://maven.apache.org/download.cgi
and run this command
mvn spring-boot:run
###How to use You can use the following credentials:
- user: user1, password: 1
- user: user2, password: 1
- user: user3, password: 1
user1 and user2 has USER role user3 has ADMIN role
If you log in with the user user3 you will have access to the categories module
You can create or update a category
In the Sell menu you will be able to see your published products and your sells
In the Buy menu you can see a menu to buy products and another to see the purchases made(My shopping)
to add to cart you just need to press the cart button
Then, at the top right, you will click on the cart button, this will take you to the checkout page
after you click the Done button, a redirection to My Shopping will be made
If you click the eye button you can see the details
The next articles are used as guide
- Build a Basic Login Form With Spring Security, Thymeleaf, and Java
- Spring Security — User Roles and ThymeLeaf Extras
- Spring Security — Redirect Based on User Roles
- Tutorial: Thymeleaf + Spring
- Spring Boot CRUD Application with Thymeleaf
- Display Logged-in User’s Information in Thymeleaf
- Display Logged-in User’s Information in Thymeleaf
- Spring Security with Thymeleaf
- Use th:replace to include HTML fragments in Thymeleaf
- Spring Boot JPA + H2 example: Build a CRUD Rest APIs
- Guide To Running Logic on Startup in Spring
- Spring Security - Form Login with Database
- Create a Shopping Cart Web Application with Spring Boot, Hibernate
- Working with Select and Option in Thymeleaf
- Javax BigDecimal Validation