-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 961 Bytes
/
Makefile
File metadata and controls
26 lines (18 loc) · 961 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
.SHELL := /bin/bash
COMPOSE_HTTP_TIMEOUT=120
DOCKER_TAG ?= latest
help: ## Help documentation
@echo "Available targets:"
@grep -E '^[a-zA-Z_0-9-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
docker-clean: ## Clean up the last containers for this project
@docker-compose down --rmi local -v --remove-orphans
init: ## Install required tools for local environment on macOS
brew install awscli || exit 0
curl -L https://github.com/hasura/graphql-engine/raw/master/cli/get.sh | bash || exit 0
install: ## Install dependencies for frontend application
@(cd client && yarn)
start-server: ## Start the containers
@(COMPOSE_HTTP_TIMEOUT=$$COMPOSE_HTTP_TIMEOUT docker-compose up --remove-orphans --build)
start-clean: docker-clean start-server ## Clean the docker containers then start
start-client: ## Start admin app locally (http://localhost:4200)
@(cd client && yarn start:admin)