github.com/phantomdata/supplies-go

Essentially an overcomplicated automatically updating collection of shopping lists with notifications


Install
go get github.com/phantomdata/supplies-go

Documentation

Supplies

Introduction

Supplies is a service I'm designing to back a UI for tracking a household's supplies. Groceries, regular purchases, one offs - etc. Essentially, an overcomplicated automatically updating collection of shopping lists with notifications.

This is a basic RESTful API implemented leveraging GoLang. I'm currently experimenting with converting a number of my personal internal utilities over to a service based architecture instead of monolothic apps and this is the test-bed.

There's currently no UI layer, so this is a basically useless program at the moment - beyond perhaps a reference.

Setup

  1. go get github.com/lib/pq
  2. Create a supplies_dev database in postgres
  3. Import the schema defined in sql
  4. go run main.go
  5. curl http://localhost:3000

Building

  1. Ensure that you have qtc (https://github.com/valyala/quicktemplate) installed
  2. Simply run make to compile the app into binaries/