Skip to content

jnweiner-auth0/golang-grocery-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use this repo

This repo is part of the Marketplace team's Golang onboarding guide. Follow along using our step-by-step walkthrough!

Getting started

Prereqs

  1. You will need to install both Go and the protoc compiler (version 3):
  1. Install the protobuf and Twirp plugins:
$ go install google.golang.org/protobuf/cmd/[email protected]
$ go install google.golang.org/grpc/cmd/[email protected]
$ go get google.golang.org/grpc
$ go get github.com/twitchtv/twirp/protoc-gen-twirp
  1. Update your PATH so the protoc compiler can find the plugins:
$ export PATH="$PATH:$(go env GOPATH)/bin"

Relevant docs:

Database setup with Docker

You will need a Postgres instance running on the default port with a db called root and a table called groceries:

$ docker run --name grocery-list -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=password -d postgres
$ docker exec -it grocery-list psql
$ create table groceries ( id SERIAL PRIMARY KEY, item TEXT, quantity INT );

About

Testing ground for build-your-own golang/grpc demo app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published