willis7 / contacts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contacts

This trivial application explores the use of postgresql, docker and golang (templates, go modules, sqlx).

Docker Compose

By mounting the contacts.sql to /docker-entrypoint-initdb.d/contacts.sql the container will run the script as part of the intialisation phase.

Development

For a docker based db and local run of code:

$ docker-compose -f dev-compose.yml up -d db
$ go run main.go -conn "postgresql://sion:example@localhost:5432/contacts" 

For a docker only build

$ docker-compose up --build

About


Languages

Language:Go 42.7%Language:Makefile 38.0%Language:HTML 14.0%Language:Dockerfile 5.4%