Skip to content

cedarbaum/runstreak.app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1ebc111 Β· Aug 28, 2024

History

73 Commits
Aug 9, 2024
Apr 15, 2024
Feb 12, 2023
Feb 12, 2023
Feb 12, 2023
Aug 28, 2024
Feb 12, 2023
Feb 12, 2023
Apr 21, 2023
Apr 21, 2023
Mar 9, 2023
Feb 7, 2024
Mar 12, 2023
Feb 12, 2023
Feb 15, 2023
Feb 12, 2023

Repository files navigation

πŸƒβ€β™‚οΈβ€οΈπŸ”₯πŸ”₯πŸ”₯

This is a simple web app to track your running streaks (consecutive days of running) on Strava.

Getting Started

Configuring authentication

This project uses NextAuth.js for authentication.

You will first need to create a Strava API application.

Once this is done, configure the following environment variables in a .env.local file:

STRAVA_CLIENT_ID=CLIENT_ID
STRAVA_CLIENT_SECRET=CLIENT_SECRET
NEXTAUTH_SECRET=SECURE_GENERATED_SECRET

Rate limiting

Since Strava has a relatively strict default API limit per application, it is useful to restrict the number of API requests per account. This application uses Redis hosted hosted on Upstash to track and throttle requests. Once you setup the Redis DB, fill out the following env variables:

UPSTASH_REDIS_REST_URL=URL
UPSTASH_REDIS_REST_TOKEN=TOKEN

Finally, set the per account limit you want to use.

STRAVA_DAILY_API_LIMIT=LIMIT

Note that if you wish to not setup rate limiting, you can just comment out the code in @/utils/RateLimiting.ts.

Building / Running

This project uses a standard Next.js setup:

npm install
npm run dev

About

Track your running streak on Strava!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published