-
Open application in IntelliJ/Eclipse/STS
-
Open Terminal in the IDE
-
Run command :
./mvnw install dockerfile:buildNote : If not in iOS Enviroment, go to step 4 -
Run command :
/mvnw install dockerfile:build -
Run command :
docker-compose up -
Open POSTMAN or RESTClient (In Visual Code)
-
Make a
POSTrequest to :http://localhost:8080/authenticateAdd this object literal in body :{ "username":"shiva", "password" : "bhaggan" } -
Copy the JWT from the response
-
Make a
GETrequest to :http://localhost:8080/loadNavigate to HEADERS if using postman and add the following KEY ValueAuthorization:Bearer {add your copied token here} -
You will get a response with this message :
COMPLETED -
Run this command in terminal :
docker exec -it spring-security-jwt_mysqldb_1 mysql -uroot -p -
Enter password :
root -
go the database :
use batch&&select * from student -
Congratulation you have executed your first application in docker
widjesh/Project1_Enterprise_Architecture
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|