Skip to content

Repository files navigation

Runnr

License: MIT Next.js TypeScript

Runnr is a Strava-connected running dashboard built with Next.js and TypeScript.

It helps you track training consistency, visualize routes, monitor gear, and generate race predictions from your run history.

Runnr dashboard

Quick Start

  1. Clone and install:

    git clone https://github.com/bjarkeef/runnr.git
    cd runnr
    npm install
  2. Copy environment file:

    Copy-Item .env.example .env.local
    cp .env.example .env.local
  3. Fill in required values in .env.local:

    • DATABASE_URL
    • DIRECT_URL
    • STRAVA_CLIENT_ID
    • STRAVA_CLIENT_SECRET
    • STRAVA_REDIRECT_URI (defaults to http://localhost:3000/api/auth/callback)

    Optional:

    • OPENROUTESERVICE_API_KEY (route planner)
  4. Prepare database schema:

    npm run db:migrate
  5. Start dev server:

    npm run dev
  6. Open http://localhost:3000 and connect your Strava account.

Tip: if you only have one local PostgreSQL URL, use the same value for DATABASE_URL and DIRECT_URL.

Docs

Available Scripts

  • npm run dev - run local development server
  • npm run build - build production bundle
  • npm run start - run production server
  • npm run lint - run ESLint
  • npm run db:migrate - apply Prisma migrations
  • npm run db:push - push schema directly (alternative for local dev)
  • npm run db:studio - open Prisma Studio

License

MIT. See LICENSE.

About

Runnr is a lightweight, PWA-capable running dashboard built with Next.js + TypeScript. It syncs with Strava to visualize routes, track gear and personal records, and provides race predictions, pacing strategies, and training plans.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages