Introduction • Used Technologies • Before Installing • Prerequisites • How To Use With Docker • Inspiration
WOLF application provides a possible solution how to use SpringBoot(2.0.0.RELEASE) lightweight framework with Thymeleaf and STOMP WebSocket.
The home page lists all customers from the db. Swagger UI shows all endpoints of app. As you can see, there are /save-customer endpoint. If you call this URL, the saved data appears immediately on /home page thanks for the WebSocket TCP connection.
If you want to try this app without cloning, then there are AWS instance with RDS postgresql database:
- open http://default-environment.sv3p8jifpb.us-east-2.elasticbeanstalk.com/home
- open http://default-environment.sv3p8jifpb.us-east-2.elasticbeanstalk.com/swagger-ui.html
Put the two tabs of your browser next to each other and in Swagger UI
- call with some test data the /save-customer endpoint
- see what shows the /home tab.
Note: On http://default-environment.sv3p8jifpb.us-east-2.elasticbeanstalk.com/home screen
open your inspect window (Key F12) and on the console tab you can see the Websocket communication.
- jdk
- maven
- postgres
- (docker) //if you want to use this application with docker//
# Clone this repository
$ git clone https://github.com/lombocska/wolf.git
# Use docker potgres db
$ cd wolf-web/src/main/resources
Use 'wolverine-database' (docker image name) as a host instead of 'wolf.cqus2hamenyz.us-east-2.rds.amazonaws.com'
# Wrap application into jar from command line
$ mvn clean install
# Build images and containers
$ docker-compose up -d
# Open the home page - go localhost:8080/home
- Spring IO - WebSocket - WebSocketGuide
- Testing - Controller testing SpringBoot App Tests
- MEMORYNOTFOUND - Dealing with static resources Config Resources
- LOGO