-
Notifications
You must be signed in to change notification settings - Fork 255
/
Makefile
35 lines (27 loc) · 1 KB
/
Makefile
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
.PHONY: help build-backend launch-backend build-frontend launch-frontend launch-db load-db remove-db
include .env
export
# target: help - Display callable targets.
help:
@egrep "^# target:" [Mm]akefile
# target: build-backend - Launch the backend server
build-backend:
cd CSETWebApi/CSETWeb_API/CSETWeb_ApiCore && dotnet build
# target: launch-backend - Launch the backend server
launch-backend:
cd CSETWebApi/CSETWeb_API/CSETWeb_ApiCore && dotnet run
# target: build-frontend - Launch the frontend server
build-frontend:
cd CSETWebNg && npm install
# target: launch-frontend - Launch the frontend server
launch-frontend:
cd CSETWebNg && ng serve
# target: launch-db - Launch the local database
launch-db:
docker compose up -d
# target: load-db - Load the database from the backup
load-db:
docker exec -i cset-mssql /opt/mssql-tools/bin/sqlcmd -U 'sa' -P "Password123" -i /var/opt/mssql/backup/restoredb.sql
# target: remove-db - Remove the database, container and its data
remove-db:
docker compose down -v