-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
66 lines (43 loc) · 1.55 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
check-prereqs: ## Checks prerequisite software status.
./prereq-check.sh
run-server:
cd server && go run cmd/main.go&
run-client:
cd webapp && npm run dev
run: check-prereqs run-server run-client ## Runs the server and webapp.
golangci-lint:
cd server && golangci-lint run ./...
vet:
cd server && go vet ./...
eslint:
cd webapp && npx eslint --ext .js,.jsx,.tsx,.ts . --quiet --cache
style: golangci-lint modules-tidy vet eslint ## Runs style/lint checks
test:
cd server && go test ./...
docker-build:
docker compose build --no-cache
docker-start:
docker compose up -d --build
docker-start-fg:
docker compose up --build
docker-stop:
docker compose down
docker-import: docker-start
docker exec kg-server /knowledge-graph-server/kg-server db import-content --url https://raw.githubusercontent.com/oseducation/content-ge/main/comp-science/
docker-container-rm: docker-stop
docker compose rm
docker-nuke:
docker exec kg-server /knowledge-graph-server/kg-server db nuke
import-old:
cd server && go run cmd/main.go db import-old --url https://raw.githubusercontent.com/oseducation/content-ge/main/programming-methodology/
import:
cd server && go run cmd/main.go db import-content --url https://raw.githubusercontent.com/oseducation/content-ge/main/comp-science/
import-khan:
cd server && go run cmd/main.go db import --url https://raw.githubusercontent.com/oseducation/content-ge/main/khan-math-en/
nuke:
cd server && go run cmd/main.go db nuke
n-run: nuke import run
modules-tidy:
cd server && go mod tidy
build-webapp:
cd webapp && npm run build