mirror of
https://github.com/farcasclaudiu/learn-build-apps-copilot-agent.git
synced 2026-06-22 09:01:39 +03:00
45 lines
1.3 KiB
Markdown
45 lines
1.3 KiB
Markdown
## Step 3: Build the logic and data tiers for the multi-tier application
|
|
|
|
> [!NOTE]
|
|
> **Behind the scenes:** Custom instructions and prompt files guide Copilot while building the logic and data tiers.
|
|
|
|
In this step, you will implement the backend of the **multi-tier application**:
|
|
|
|
- Configure MongoDB connection for `octofit_db`.
|
|
- Create Express routes for users, teams, activities, leaderboard, and workouts.
|
|
- Add a seed script to populate test data.
|
|
|
|
### :keyboard: Activity: Scaffold the logic tier
|
|
|
|
Use this prompt file:
|
|
|
|
> 
|
|
>
|
|
> ```prompt
|
|
> /create-express-logic-tier
|
|
> ```
|
|
|
|
### :keyboard: Activity: Configure and seed the data tier
|
|
|
|
Use this prompt file:
|
|
|
|
> 
|
|
>
|
|
> ```prompt
|
|
> /init-populate-octofit_db
|
|
> ```
|
|
|
|
1. Commit and push your backend changes.
|
|
|
|
1. Wait for Mona to validate and unlock the next step.
|
|
|
|
<details>
|
|
<summary>Having trouble? 🤷</summary><br/>
|
|
|
|
Confirm these files include expected content:
|
|
|
|
- `octofit-tracker/backend/src/config/database.ts` includes `octofit_db` and `mongoose`.
|
|
- `octofit-tracker/backend/src/scripts/seed.ts` includes a seed command description.
|
|
|
|
</details>
|