-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (17 loc) · 834 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
dependency-install:
docker pull postgres
docker pull redis
docker pull rabbitmq
dependency-start:
docker run --name stiuswal-postgres -p 5432:5432 -d postgres
docker run --name stiuswal-redis -p 6379:6379 -d redis
docker run --name stiuswal-rabbit -p 5672:5672 -d --hostname my-rabbit rabbitmq:3
dependency-test:
docker exec -it stiuswal-postgres psql -U postgres -c "CREATE DATABASE testdb ENCODING 'LATIN1' TEMPLATE template0 LC_COLLATE 'C' LC_CTYPE 'C';"
docker exec -it stiuswal-postgres psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE postgres TO postgres;"
run-api:
go run cmd/api/main.go -port=8080 -postgresURI=postgres://postgres:@localhost/postgres?sslmode=disable -redisURI=redis://localhost -amqpURI=amqp://guest:guest@localhost:5672
run-worker:
go run cmd/worker/main.go
test-all:
go test ./... -v