Skip to content

lombocska/wolf

Repository files navigation


wolf
WOLF

A smooth sea never made a skillful sailor.

IntroductionUsed TechnologiesBefore InstallingPrerequisitesHow To Use With DockerInspiration

Introduction

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.

GIF

Used technologies

backend

database

frontend

devops

Before Installing

If you want to try this app without cloning, then there are AWS instance with RDS postgresql database:

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.

Prerequisites

  • jdk
  • maven
  • postgres
  • (docker) //if you want to use this application with docker//

How To Use 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

Inspiration