-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 774 Bytes
/
Makefile
File metadata and controls
42 lines (31 loc) · 774 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
42
.PHONY: build
build:
./scripts/build.sh
docker-build:
docker build -t rnavt/devicecommander .
lint:
golangci-lint run
lint-fix:
golangci-lint run --fix -v
gqlgen:
gqlgen generate --verbose
check-swagger:
which swagger || (go get -u github.com/go-swagger/go-swagger/cmd/swagger)
swagger: check-swagger
swagger generate spec --work-dir src -o ./docs/swagger.json --scan-models
serve-swagger: check-swagger
swagger serve -F=swagger docs/swagger.json
mock:
rm -rf mocks
./scripts/mock.sh
.PHONY: test
test:
./scripts/test.sh
run:
sudo go run main.go server
run-local-db:
echo "Starting database..."
echo "Go to http://0.0.0.0:5050/ to access the pgAdmin"
echo "pgAdmin password: admin"
echo "internal connection password: changeme"
docker-compose up