La inn script for start og stopp av MinAttest i development.
This commit is contained in:
@@ -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`.
|
||||
Reference in New Issue
Block a user