Skip to content
Demo Go Web App used in a few tutorials on Calhoun.io
Go
Branch: master
Clone or download
Latest commit 353e558 May 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Fixing a typo May 7, 2018
main.go Initial version of the Widget Demo App May 7, 2018
setup.sql formatting the sql May 7, 2018

README.md

Web App to API Demo

This app is meant to help demonstrate how easy it can be to migrate a Go application that renders HTML into a JSON API, and how nearly all of the logic in the application will remain unchanged. It intentionally starts out with a pretty poor design and structure so that we can look at the benefits of each individual set of changes we will be making.

Setup

To setup your local dev you will need to setup a PostgreSQL database. I provided a setup.sql file to help make that a little easier - you should be able to run it like this:

psql -f setup.sql

If you need help figuring our Postgres, I have a pretty in-depth series on using it here: https://www.calhoun.io/using-postgresql-with-go/

You can’t perform that action at this time.