Skip to content

alifruliarso/springboot-fitness-tracking

Repository files navigation

Building a Fitness Tracker Web using Spring Boot and GridDB

Connect with me through Upwork, LinkedIn, Email, Twitter

Technology Stack

Spring Boot, Docker, Thymeleaf, Maven, Apache ECharts
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 spring-javaformat:apply & mvn impsort:sort

Sort Import

mvn package

Running GridDB on WSL Without Systemd

sudo su gsadm

gs_startnode -u admin/admin

gs_stat -u admin/admin

GridDB Operations

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

Heart rate from a workout. Beats per minute line chart. Summary of exercise zones (peak, cardio, fat burn)