Initial commit

This commit is contained in:
2026-06-20 04:28:24 +03:00
committed by GitHub
commit 07f02e0958
29 changed files with 1700 additions and 0 deletions
@@ -0,0 +1,21 @@
---
mode: 'agent'
model: GPT-5.5
description: 'Create the Node.js logic tier for the Octofit multi-tier application'
---
Create the logic tier in `octofit-tracker/backend` for the Octofit Tracker multi-tier application.
Requirements:
1. Do not change directories; use path-qualified commands.
2. Initialize a TypeScript Node.js API with Express.
3. Configure scripts for build/dev/start.
4. Add route handlers for:
- `/api/users/`
- `/api/teams/`
- `/api/activities/`
- `/api/leaderboard/`
- `/api/workouts/`
5. Keep server port on `8000`.
6. Add Codespaces-aware API URL support using `CODESPACE_NAME`.
@@ -0,0 +1,18 @@
---
mode: 'agent'
model: GPT-5.5
description: 'Configure MongoDB and seed octofit_db for the Octofit multi-tier application'
---
Set up and populate the data tier for `octofit-tracker/backend`.
Requirements:
1. Use MongoDB with Mongoose.
2. Use connection string for local MongoDB on port `27017` and database `octofit_db`.
3. Create Mongoose models for users, teams, activities, leaderboard, and workouts.
4. Add a seed script at `src/scripts/seed.ts`.
5. Include this help/description text in the seed script comments or logs:
`Seed the octofit_db database with test data`.
6. Insert realistic sample data for all collections.
7. Verify data creation with API route responses.