Gleam Lustre Fullstack Atproto Demo App w/Slices.Network GraphQL API
at main 886 B view raw
1.PHONY: help download-schema generate-graphql dev test build 2 3GRAPHQL_ENDPOINT := https://api.slices.network/graphql?slice=at://did:plc:bcgltzqazw5tb6k2g3ttenbj/network.slices.slice/3m3gc7lhwzx2z 4 5help: ## Show this help message 6 @echo 'Usage: make [target]' 7 @echo '' 8 @echo 'Available targets:' 9 @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-20s %s\n", $$1, $$2}' 10 11download-schema: ## Download GraphQL schema from endpoint 12 @echo "Downloading GraphQL schema from $(GRAPHQL_ENDPOINT)..." 13 @npx get-graphql-schema $(GRAPHQL_ENDPOINT) > schema.graphql 14 @echo "Schema saved to schema.graphql" 15 16generate-graphql: ## Regenerate GraphQL type-safe code from .gql files 17 gleam run -m squall generate "$(GRAPHQL_ENDPOINT)" 18 19dev: ## Run the development server 20 gleam run 21 22test: ## Run tests 23 gleam test 24 25build: ## Build the project 26 gleam build