/spring-boot-text-storage

A simple online text storage service where clients can store text files

Primary LanguageJava

Online Text Storage using Spring Boot and GridDB

Connect with me through Upwork, LinkedIn, Email, Twitter

Technology Stack

Spring Boot, Docker, Thymeleaf, Maven
Database: GridDB 5.5.0

Run Application with Docker Compose

Build the docker image:

docker compose -f docker-compose.yml build

Run the docker image:

docker compose -f docker-compose.yml up -d

Check container

docker ps -a

docker compose logs --follow

docker compose logs > container.log

The website available at http://localhost:8080

For development supporting auto-reload

Prerequisites:

Format code

mvn spotless:apply

GridDB Operations

  • Exec into docker container
    $ su gsadm
    $ gs_sh
    gs> setcluster clusterD dockerGridDB 239.0.0.1 31999 $node0
    gs> connect $clusterD