La inn script for start og stopp av MinAttest i development.

This commit is contained in:
steinhelge
2025-11-22 12:17:48 +01:00
parent 158bd873e2
commit 21107773db
5 changed files with 236 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
---
description: Start the MinAttest project (Backend + Frontend)
---
# Start MinAttest
This workflow starts the backend (with database) and the frontend.
## 1. Start Backend (API + Database)
The backend uses .NET Aspire to orchestrate the API and the PostgreSQL container.
```bash
// turbo
dotnet run --project backend/MinAttest.AppHost/MinAttest.AppHost.csproj
```
> [!IMPORTANT]
> Check the console output for the API URL (e.g., `https://localhost:7172` or similar).
> You may need to update `frontend/minattest-app/vite.config.ts` if the port doesn't match `10001`.
## 2. Start Frontend
Open a new terminal for the frontend.
```bash
cd frontend/minattest-app
npm install
npm run dev
```
> [!NOTE]
> The frontend will be available at `http://localhost:5173`.