forked from equinor/sara
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 893 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (31 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
run:
$(MAKE) -j2 run-api run-frontend
run-devdb:
$(MAKE) -j2 run-api-devdb run-frontend
run-api:
dotnet run --project api
run-api-devdb:
ASPNETCORE_ENVIRONMENT=Local \
Database__UseInMemoryDatabase=false \
Database__AllowedAuthMethods__0=AppRegIdentity \
Database__AllowedAuthMethods__1="" \
dotnet run --project api
run-frontend:
@echo "Waiting for backend on port 8100..."
@while ! curl -sf http://localhost:8100/api/health > /dev/null 2>&1; do sleep 0.5; done
@echo "Frontend ready at \033[36mhttp://localhost:8099\033[0m"
cd frontend && pnpm dev --clearScreen false
build:
dotnet build api
check:
dotnet build api
cd frontend && pnpm exec tsc --noEmit
test:
dotnet test
format:
dotnet tool restore
dotnet csharpier format .
run-docker-compose:
docker compose up --build
run-docker-compose-nginx:
docker compose -f various/docker-compose.nginx.yaml up --build