Skip to content

wirhabenzeit/activitymap

Repository files navigation

ActivityMap

Map, list, and analyze of all your Strava activities.

Demo

Features

  • Filter by distance, elevation, date, sports type, ...
  • Automatically add/remove/update Strava activities via webhook
  • Share all/selected activities with friends & family
  • easy to customize and extend

Map View

  • Wide range of map styles and overlays
  • Shareable map screenshots
  • Overlays of biking and hiking routes

Map

List View

  • Customizable columns
  • Sortable columns

List

Stats View

  • Calendar heatmap
  • Timeline of total distance/elevation/time per period of time, with local averaging
  • Configurable scatter plot of all activities
  • Progress plot per year or month

Stats Timeline Stats Calendar

Dependencies

Setup

Create a MapBox account

You'll need your access_token

Create a Strava app

You'll need your strava_client_id and strava_client_secret

Setup a PosgreSQL database

(Vercel Postgres)[https://vercel.com/docs/solutions/postgres] is free and easy to setup.

Install the dependencies

pnpm install

Setup authentication

npx auth secret

to generate a secret for your authentication.

Environment variables

Create a .env file in the root directory of your project and add the appropriate environment variables:

# POSTGRES
POSTGRES_URL=
POSTGRES_PRISMA_URL=
POSTGRES_URL_NO_SSL=
POSTGRES_URL_NON_POOLING=
POSTGRES_USER=
POSTGRES_HOST=
POSTGRES_PASSWORD=
POSTGRES_DATABASE=

# AUTH
AUTH_SECRET=
AUTH_STRAVA_ID=
AUTH_STRAVA_SECRET=

# MAPBOX
NEXT_PUBLIC_MAPBOX_TOKEN=

Setup Database

pnpm db:push

Start the development server

pnpm dev

Build

pnpm build

About

Map for personal outdoor activities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •