[!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.
Endurain is a self-hosted fitness tracking service that operates much like Strava but allows users to have complete control over their data and the hosting environment. The application's frontend is built using Vue.js and Bootstrap CSS. On the backend, it leverages Python FastAPI, Alembic, SQLAlchemy, stravalib and gpxpy for seamless integration with Strava and .gpx file import. The MariaDB database engine is employed to efficiently store and manage user data, while Jaeger is used for basic observability.
To deploy Endurain, Docker images are available, and a comprehensive example can be found in the "docker-compose.yml" file provided. Configuration is facilitated through environment variables, ensuring flexibility and ease of customization.
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.
Default credentials are:
Currently the service supports:
To do features (not by order):
More screenshots: https://imgur.com/a/lDR0sBf
Table bellow shows supported environemnt variables. Variables marked with optional "No" should be set to avoid errors.
Environemnt variable | Default value | Optional | Notes |
---|---|---|---|
MY_APP_BACKEND_PROTOCOL | http | Yes | Needs to be https if you want to enable Strava integration. You may need to update this variable based on docker image spin up |
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 |
Frontend dependencies:
Table bellow shows supported environemnt variables. Variables marked with optional "No" should be set to avoid errors.
Environemnt variable | Default value | Optional | Notes |
---|---|---|---|
DB_HOST | mariadb | Yes | N/A |
DB_PORT | 3306 | Yes | N/A |
DB_USER | gearguardian | Yes | N/A |
DB_PASSWORD | changeme | No |
N/A |
DB_DATABASE | gearguardian | Yes | N/A |
SECRET_KEY | changeme | No |
N/A |
ALGORITHM | HS256 | Yes | N/A |
ACCESS_TOKEN_EXPIRE_MINUTES | 30 | Yes | N/A |
STRAVA_CLIENT_ID | changeme | No |
N/A |
STRAVA_CLIENT_SECRET | changeme | No |
N/A |
STRAVA_AUTH_CODE | changeme | No |
N/A |
JAEGER_ENABLED | true | 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 | N/A |
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 | frontend | 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_PORT | frontend | 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 |
GEOCODES_MAPS_API | changeme | No |
Geocode maps offers a free plan consisting of 1 Request/Second. Registration necessary. |
Table bellow shows the obligatory environemnt 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 | gearguardian | No |
N/A |
MYSQL_USER | gearguardian | No |
N/A |
MYSQL_PASSWORD | changeme | No |
N/A |
Python backend dependencies used:
alembic==1.13.1
For Strava integration API endpoint must be available to the Internet. You will also need to create a API Application using a Strava account -> more info here https://developers.strava.com/docs/getting-started/