Skip to content

Commit

Permalink
awaiting queue publish + new readme
Browse files Browse the repository at this point in the history
  • Loading branch information
voynow committed Oct 11, 2024
1 parent b4e9b82 commit 2c3ecb3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# strava
# TrackFlow: The Future of Training

**TrackFlow** is an AI-powered running coach app designed to deliver hyper-personalized training plans and dynamic feedback based on real-time performance data. It integrates seamlessly with **Strava**, providing a streamlined user experience for runners looking to optimize their performance through data-driven insights.

## Key Features

- **AI-Powered Training Plans**: Tailored to individual fitness levels, goals, and real-time performance data.
- **Strava Integration**: Automatically syncs activities for accurate, up-to-date training adjustments.
- **Real-Time Adjustments**: Dynamic updates based on mid-week performance to ensure training aligns with weekly goals.
- **Performance Tracking**: In-depth analysis of key metrics such as mileage, pace, and elevation gain.
- **Automated Notifications**: Weekly training plans and updates delivered via email.

## Tech Stack

- **Backend**: Python (FastAPI, Polars, Stravalib, Supabase)
- **Frontend**: Next.js (TypeScript, Tailwind CSS)
- **Database**: PostgreSQL (Supabase integration)
- **Cloud**: AWS Lambda (serverless backend), Cloudflare (DNS)
- **APIs**: Strava API, OpenAI for training generation

TrackFlow provides an efficient, scalable solution for personalized athletic coaching, leveraging AI and real-time data to deliver continuous performance optimization.
15 changes: 7 additions & 8 deletions web/src/app/strava_webhook/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ export async function POST(request: NextRequest) {
MessageBody: JSON.stringify(event),
};

sqs.sendMessage(params, (err, data) => {
if (err) {
console.error(`Error sending message to SQS: ${err}`);
} else {
console.log(`Message sent to SQS with ID: ${data.MessageId}`);
}
});
try {
const data = await sqs.sendMessage(params).promise();
console.log(`Message sent to SQS with ID: ${data.MessageId}`);
} catch (err) {
console.error(`Error sending message to SQS: ${err}`);
}

return NextResponse.json({}, { status: 200 });
}
}

0 comments on commit 2c3ecb3

Please sign in to comment.