keat/kit-service 📦🍽️📦🍽️
A service for meal kits, categories, categories, ingredients and such. Darn, what's excluded?: orders, payments, users
Env File
Create a .env
file at the project root to store the required environment variables:
# .env
MONGO_URI=mongodb://localhost:27017/test
MONGODB_SRV_DB=default
OTEL_TRACER_NAME=github.com/gimmickless/keat-kit-service
Linting
golangci-lint
is used as an linter aggregator.
It runs as a Github action on the main branch. However, to run it locally, you'll need to first install and then run:
golangci-lint run
in the main directory.
Running Locally
go run
can be used for standalone execution with a .env
file added to the project root:
go run ./cmd/campaign/main.go --env ./.env
Updating Dependencies
go get -u ./... && go mod tidy -compat=1.17
Discussion
JWT Token
The AWS API Gateway should validate the JWT token, so the service should only extract the required information from the token (like if the requester is an admin etc).
See also