eShopping application implemented with Spring Boot, Spring Security, Spring Data and Spring Session
GPL-3.0 License
Master:
Development:
eShopping Application implemented with Spring Boot, Spring Security, Spring Data and Spring Session
Make sure docker is up and running on your local machine
Download the repo and execute the following commands in the same order
Build the project
$ mvn clean package -DskipTests
Build eShopping docker image
$ docker build -t eshopping .
Create docker network
$ docker network rm eshopping_network
$ docker network create eshopping_network
Run MySql instance in the same docker network. This will help to resolve database hostname using the docker container name. Make sure to change the MYSQL_ROOT_PASSWORD placeholder
$ docker stop db && docker rm db
$ docker run --name db -e MYSQL_ROOT_PASSWORD=<db_password> -e MYSQL_DATABASE="eshopping" --network=eshopping_network -p 3306:3306 -d mariadb
Run eShopping application in the same docker network.
$ docker stop eshopping && docker rm eshopping
$ docker run -e DB_USERNAME=root -e DB_PASSWORD=<db_password> -e DB_URL='jdbc:mysql://db:3306/eshopping?serverTimezone=UTC' -e ACTIVE_PROFILE=dev --network=eshopping_network -p 8082:8082 eshopping
Load data into MySql database by following steps from here
That's it you should be able to access the application using the link http://localhost:8082/api/v1/category/list and use credentials admin/admin as password
UPDATE `eshopping`.`user` SET `password`=<encrypted password> WHERE `username`='admin';