/coffee-tracker

Primary LanguageGoMIT LicenseMIT

coffee-tracker

Google App Engine app in Go 1.12 for tracking coffee with the purpose of knowing when to re-order

Build Status Coverage Status

Environment Variables (you might want to use something like direnv)

# mimics for local dev what's set by GAE
# https://cloud.google.com/appengine/docs/standard/go/runtime
export GOOGLE_CLOUD_PROJECT=XXXXXXXXXXXXX

# configuration parameters from you Auth0 app
export OAUTH_AUDIENCE=XXXXXXXXXXXXXX
export OAUTH_ISSUER=XXXXXXXXXXXXXX

# react vars
export REACT_APP_API_DOMAIN_PROD=<GAE PROJECT BASE URL>
export REACT_APP_API_DOMAIN_DEV=http://localhost:8080

Running:

in one terminal run the datastore

gcloud beta emulators datastore start

in another terminal

$(gcloud beta emulators datastore env-init)
go run cmd/server/main.go

in a 3rd terminal run the frontend

cd frontend
yarn start

Links: