Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alifruliarso/springboot-fitness-tracking
- Owner: alifruliarso
- Created: 2024-07-23T15:16:31.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T18:55:33.000Z (3 months ago)
- Last Synced: 2024-09-29T08:21:38.215Z (about 1 month ago)
- Topics: apache-echarts, docker, docker-compose, eclipse-temurin, event-listener, griddb, spring-boot, spring-mvc, thymeleaf
- Language: Java
- Homepage:
- Size: 302 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 -adocker 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 gsadmgs_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)