-> [!WARNING]
-> This project is currently in **Alpha** state. You can try it out at your own risk, but be aware that things might break and **DATA LOSS** may occur.
-
## Table of Contents
+- Endurain documentation
- [What is Endurain?](#what-is-endurain)
-- [Features](#features)
-- [Planned Features](#planned-features)
-- [Deployment Instructions](#deployment-instructions)
-- [API Integration](#api-integration-v030)
-- [Configuration](#configuration)
- - [Frontend Environment Variables](#frontend-environment-variables)
- - [Backend Environment Variables](#backend-environment-variables)
-- [Volumes](#volumes)
-- [Bulk import and file upload](#bulk-import-and-file-upload)
-- [Strava Integration](#strava-integration)
-- [Garmin Connect Integration](#garmin-connect-integration)
-- [Log files](#log-files)
- [Sponsors](#sponsors)
- [Contributing](#contributing)
- [License](#license)
- [Help Translate](#help-translate)
-- [Community & Support](#community--support)
## What is Endurain?
@@ -49,157 +34,7 @@ Endurain is a self-hosted fitness tracking service designed to give users full c
To deploy Endurain, Docker images are available, and a comprehensive example can be found in the "docker-compose.yml.example" file provided. Configuration is facilitated through environment variables, ensuring flexibility and ease of customization. More details bellow.
-### Developer's Note
-
-As a non-professional developer, my journey with Endurain involved learning and implementing new technologies and concepts, with invaluable assistance from ChatGPT. The primary motivation behind this project was to gain hands-on experience and expand my understanding of modern development practices. Second motivation is that I'm an amateur triathlete and I want to keep track of my gear and gear components usage.
-
-If you have any recommendations or insights on improving any aspect of Endurain, whether related to technology choices, user experience, or any other relevant area, I would greatly appreciate your input. The goal is to create a reliable and user-friendly fitness tracking solution that caters to the needs of individuals who prefer self-hosted applications. Your constructive feedback will undoubtedly contribute to the refinement of Endurain.
-
-## Features
-
-Endurain currently supports:
-
-- Multi-user functionality
-- Admin and user profiles with adaptable interfaces
-- Activity import via manual or bulk upload (.gpx and .fit files)
-- Strava integration for syncing activities and gear
-- Garmin Connect integration for syncing activities
-- Personalized activity feeds and statistics (week/month)
-- Basic activity privacy settings
-- Gear tracking (wetsuits, bicycles, shoes)
-- User pages with stats and activity histories
-- Follower features (view activities)
-- Multi-language support (currently English only)
-- Dark/light theme switcher
-- Third-party app support
-- Weight logging
-
-## Planned Features
-
-Upcoming features (in no particular order):
-
-- Simplified Docker images
-- Live tracking
-- Default gear for activity types
-- Gear component tracking (e.g., track when components like bike chains need replacing)
-- Activity comments and likes
-- Notification system
-- Potential ActivityPub integration
-
-## Deployment Instructions
-
-### Default Credentials
-
-- **Username:** admin
-- **Password:** admin
-
-### Docker Deployment
-
-Endurain provides Docker images for simplified deployment. To get started, check out the `docker-compose.yml.example` file and adjust it according to your setup.
-Supported tags are:
-- **latest:** contains the latest released version;
-- **version, example "v0.3.0":** contains the app state available at the time of the version specified;
-- **development version, example "dev_06092024":** contains a development version of the app at the date specified. This is not a stable released and may contain issues and bugs. Please do not open issues if using a version like this unless asked by me.
-
-## API Integration (v0.3.0+)
-
-Endurain supports integration with other apps:
-
-- For **web apps**, the backend sends access/refresh tokens as HTTP-only cookies.
-- For **mobile apps**, tokens are included in the response body.
-
-### API Requirements
-
-- **Add a header:** Every request must include an `X-Client-Type` header with either `web` or `mobile` as the value. Requests with other values will receive a `403` error.
-- **Activity Upload:** Use the `/api/v1/activities/create/upload` endpoint (expects a .gpx or .fit file).
-
-## Configuration
-
-### Frontend Environment Variables
-Table below shows supported environment variables. Variables marked with optional "No" should be set to avoid errors.
-
-| Environment variable | Default value | Optional | Notes |
-| --- | --- | --- | --- |
-| MY_APP_BACKEND_PROTOCOL | http | Yes | Needs to be `https` if you want to enable Strava integration. Strava callback relies on this. You may need to update this variable based on docker image spin up (api host or local ip (example: http://192.168.1.10:98)) |
-| MY_APP_BACKEND_HOST | localhost:98 | Yes | Needs to be set and be Internet faced/resolved if you want to enable Strava integration. Strava callback relies on this. You may need to update this variable based on docker image spin up (api host or local ip (example: http://192.168.1.10:98)) |
-| MY_APP_STRAVA_CLIENT_ID | changeme | Yes | Needs to be set with your Strava API Client ID if you want to enable Strava integration. |
-
-Frontend dependencies:
-- To check npm dependencies used, use npm file (package.json)
-- User avatars create using DiceBear (https://www.dicebear.com) avataaars style.
-- Logo created on Canva
-
-### Backend Environment Variables
-Table below shows supported environment variables. Variables marked with optional "No" should be set to avoid errors.
-
-Environment variable | Default value | Optional | Notes |
---- | --- | --- | --- |
-| DB_HOST | mariadb | Yes | N/A |
-| DB_PORT | 3306 | Yes | N/A |
-| DB_USER | endurain | Yes | N/A |
-| DB_PASSWORD | changeme | `No` | N/A |
-| DB_DATABASE | endurain | Yes | N/A |
-| SECRET_KEY | changeme | `No` | Run "openssl rand -hex 32" on a terminal to get a secret |
-| ALGORITHM | HS256 | Yes | Currently only HS256 is supported |
-| ACCESS_TOKEN_EXPIRE_MINUTES | 15 | Yes | Time in minutes |
-| REFRESH_TOKEN_EXPIRE_DAYS | 7 | Yes | Time in days |
-| STRAVA_CLIENT_ID | changeme | `No` | Needed if you want to enable the Strava integration |
-| STRAVA_CLIENT_SECRET | changeme | `No` | Needed if you want to enable the Strava integration |
-| STRAVA_AUTH_CODE | changeme | `No` | Needed if you want to enable the Strava integration |
-| JAEGER_ENABLED | false | Yes | N/A |
-| JAEGER_PROTOCOL | http | Yes | N/A |
-| JAEGER_HOST | jaeger | Yes | N/A |
-| JAGGER_PORT | 4317 | Yes | N/A |
-| STRAVA_DAYS_ACTIVITIES_ONLINK | 30 | Yes | On Strava integration setup the number of days (including today) to get activities. Strava free API limitations can limit number of days you can query in a given time |
-| FRONTEND_PROTOCOL | http | Yes | Needs to be set if you want to enable Strava integration. You may need to update this variable based on docker image spin up (frontend host or local ip (example: http://192.168.1.10:8080)) |
-| FRONTEND_HOST | frontend:8080 | Yes | Needs to be set if you want to enable Strava integration. You may need to update this variable based on docker image spin up (frontend host or local ip (example: http://192.168.1.10:8080)) |
-| GEOCODES_MAPS_API | changeme | `No` | Geocode maps offers a free plan consisting of 1 Request/Second. Registration necessary. |
-
-Table below shows the obligatory environment variables for mariadb container. You should set them based on what was also set for backend container.
-
-| Environemnt variable | Default value | Optional | Notes |
-| --- | --- | --- | ---
-| MYSQL_ROOT_PASSWORD | changeme | `No` | N/A |
-| MYSQL_DATABASE | endurain | `No` | N/A |
-| MYSQL_USER | endurain | `No` | N/A |
-| MYSQL_PASSWORD | changeme | `No` | N/A |
-
-To check Python backend dependencies used, use poetry file (pyproject.toml)
-
-## Volumes
-
-It is recommended to configure the following volumes for data persistence:
-
-| Volume | Path | Notes |
-| --- | --- | --- |
-| /app/files/bulk_import |
-
-
+
+
+ A self-hosted fitness tracking service - Mastodon profile. +
+