mirror of
https://github.com/farcasclaudiu/learn-build-apps-copilot-agent.git
synced 2026-06-22 09:01:39 +03:00
Initial commit
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user