Web application for buying products and searching stores.
- Backend: Java, Spring Boot/MVC/Data JPA, Thymeleaf, MySQL.
- Frontend: HTML, CSS, Javascript, jQuery, Bootstrap.
Clone this repository
- With Intellij Idea
- Import build.gradle
File-> New-> Project from Existing Sources (check Use auto-import)
- Build-> Build Project
- Run-> Run 'Application'
- Import build.gradle
- With terminal
- cd web-prices-observatory
- ./gradlew build
- ./gradlew bootRun
Use https:localhost:8765 for webapp and https:localhost:8765/observatory/api/ for restful api.
- You need mysql server running (or mariadb)
- Create the needed user, give him the needed privileges, create the database tables and add the initial data by running at the mysql shell (usually as root with "
mysql -u root -p
"):
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON softeng2018.* TO 'user'@'localhost';
source PATH/TO/web-prices-observatory/src/main/resources/sql/schema.sql;
source PATH/TO/web-prices-observatory/src/main/resources/sql/data.sql;
- Build Project
- Create jar with
./gradlew bootJar
- Distribute
build/libs/web-prices-observatory-VERSION.jar
- Run it with
java -jar web-prices-observatory-VERSION.jar
run `keytool -genkeypair -alias tomcat -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore keystore.p12 -validity 3650`
set password 'hmmysgottalent'
put keystore.p12 at src/main/resources/keystore
enable ssl at src/main/resources/application.properties