-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(server): fack gcs server for local development
- Loading branch information
1 parent
11d841b
commit b22bcb6
Showing
4 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ help: | |
@echo " dev Run the application with hot reloading" | ||
@echo " run-app Run the application" | ||
@echo " run-db Run the MongoDB database using Docker Compose" | ||
@echo " up-gcs Run the fake-gcs-server using Docker Compose" | ||
@echo " down-gcs Stop the fake-gcs-server using Docker Compose" | ||
@echo " gql Generate GraphQL code include dataloader" | ||
@echo " mockuser Create a mock user by executing a curl request" | ||
@echo " schematyper Generate schema using schematyper" | ||
|
@@ -60,11 +62,17 @@ gql: | |
go generate ./internal/adapter/gql/gqldataloader | ||
go generate ./internal/adapter/gql | ||
|
||
up-gcs: | ||
docker compose -f ../docker-compose.yml up -d gcs | ||
|
||
down-gcs: | ||
docker compose -f ../docker-compose.yml down gcs | ||
|
||
mockuser: | ||
curl -H 'Content-Type: application/json' -d '{"email": "[email protected]", "username": "Mock User"}' http://localhost:8080/api/signup | ||
|
||
schematyper: | ||
go run $(SCHEMATYPER) -o $(MANIFEST_DIR)/schema_translation.go --package manifest --prefix Translation ./schemas/plugin_manifest_translation.json | ||
go run $(SCHEMATYPER) -o $(MANIFEST_DIR)/schema_gen.go --package manifest ./schemas/plugin_manifest.json | ||
|
||
.PHONY: lint test failcheck e2e build dev-install dev run-app run-db gql mockuser schematyper | ||
.PHONY: lint test failcheck e2e build dev-install dev run-app run-db gql up-gcs down-gcs mockuser schematyper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters