fitwave

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: MIT Imports: 1 Imported by: 0

README

FitWave

FitWave is a tool that lets you fetch your Strava data, create custom dashboards using SQL, and view your workouts with tables and charts. It helps you understand your training better and make informed decisions about your fitness.

Features

  • Data Integration: Connect with your Strava account and get your workout data.
  • Custom Dashboards: Use SQL to create dashboards that show the information you want.
  • Visualization Tools: See your workout data in tables and charts.
  • User-Friendly Interface: Easy to use and navigate.
  • Real-Time Updates: Keep your dashboards updated with the latest data from Strava.

Demo

To see FitWave in action, watch the demo on YouTube:

Demo Video

Install the Project

There are a few options to install the project:

Release binaries

You can download the release binary for your system from the releases page.

Docker image

To pull the Docker image:

# Pull the latest image
docker pull bahattincinic/fitwave

# Or specify the image by tag
docker pull bahattincinic/fitwave[:tag]
Building from source

1. Clone the Repository

git clone git@github.com:bahattincinic/fitwave.git
cd fitwave

2. Build Backend

make

2. Build Frontend

cd ui
npm install
Running the Application

1. Run Backend

Run project with the following command;

./fitwave

If you need to override the configuration, create a .env file.

2. Run Frontend (different terminal tab)

cd ui
npm run serve

Environment Variables

Field Name Type Default Options/Examples
ENV string local - local
- production
LOG_LEVEL string debug - debug
- info
- warn
- error
- panic
- fatal
LOG_OUTPUT string stdout - stdout
- /foo/bar/fitwave.log
DATABASE_DSN string fitWave.db - fitWave.db
- host=localhost user=postgres password=postgres dbname=fitwave port=5432
DATABASE_TYPE string sqlite - mysql
- postgresql
- sqlite
DATABASE_AUTO_MIGRATE boolean true - true
- false
API_PORT integer 9000

Production Build

Build Frontend

make build-frontend

Build Backend

make GCFLAGS="-tags=prod"

Swagger API Documentation

To view the API Swagger documentation, please visit the following link:

http://localhost:9000/api/docs/

Updating Swagger

make swaggen

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
api
docs
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL