sudo apt update && sudo apt install golang-go
# or: sudo snap install go
go versionMYSQL_USER=magento
MYSQL_PASS=magento
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_DB=magento
API_USER=admin
API_PASS=secret
REDIS_ADDR=""
REDIS_PASS=""
PORT=8080
GORM_LOG=off # Disable SQL logging
PRODUCT_FLAT_CACHE=off # Disable product cache
cd gogento-catalog
go mod tidyFull API (REST + GraphQL):
go run magento.goStandalone GraphQL (GraphQL only):
go run ./cmd/graphqlServer: http://localhost:8080
- GraphQL:
POST /graphql - Playground:
GET /playground