Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alifruliarso/springboot-fitness-tracking

Fitness Tracker Web using Spring Boot
https://github.com/alifruliarso/springboot-fitness-tracking

apache-echarts docker docker-compose eclipse-temurin event-listener griddb spring-boot spring-mvc thymeleaf

Last synced: 28 days ago
JSON representation

Fitness Tracker Web using Spring Boot

Awesome Lists containing this project

README

        

# Building a Fitness Tracker Web using Spring Boot and GridDB
[](blog/heartrate-dashboard.png)

> **Connect** with me through [Upwork](https://www.upwork.com/freelancers/~018d8a1d9dcab5ac61), [LinkedIn](https://linkedin.com/in/alifruliarso), [Email](mailto:[email protected]), [Twitter](https://twitter.com/alifruliarso)

## Technology Stack
Spring Boot, Docker, Thymeleaf, Maven, [Apache ECharts](https://echarts.apache.org/en/index.html)\
Database: GridDB 5.5.0

## Run Application with Docker Compose

Build the docker image:
```shell
docker compose -f docker-compose.yml build
```

Run the docker image:

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

Check container

```shell
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**:

- [Eclipse Temurin](https://adoptium.net/temurin/releases/)
- [Docker](https://docs.docker.com/engine/install/)

**Format code**
```shell
mvn spring-javaformat:apply & mvn impsort:sort
```

**Sort Import**
```shell
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
```shell
$ 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)