saasitone/Makefile

42 lines
540 B
Makefile
Raw Normal View History

2021-12-14 18:16:48 -08:00
.PHONY: db
db:
psql postgresql://admin:admin@localhost:5432/app
2021-12-14 18:16:48 -08:00
.PHONY: db-test
db-test:
2021-12-13 09:51:00 -08:00
psql postgresql://admin:admin@localhost:5432/app_test
2021-12-27 14:36:18 -08:00
.PHONY: cache
cache:
redis-cli
2021-12-11 10:46:01 -08:00
.PHONY: ent-gen
ent-gen:
go generate ./ent
.PHONY: ent-new
ent-new:
go run entgo.io/ent/cmd/ent init $(name)
.PHONY: ent-install
ent-install:
2021-12-11 11:00:10 -08:00
go get -d entgo.io/ent/cmd/ent
.PHONY: up
up:
docker-compose up -d
sleep 3
.PHONY: reset
reset:
docker-compose down
make up
2021-12-11 11:00:10 -08:00
.PHONY: run
run:
2021-12-11 13:06:28 -08:00
clear
go run main.go
.PHONY: test
2021-12-17 18:14:43 -08:00
test:
2021-12-19 10:22:44 -08:00
go test -p 1 ./...