Skip to content

noerog/blog_example__go_web_db

 
 

Repository files navigation

This is the example repository for this blog post

To run the server on your system:

  1. Make sure you have dep installed
  2. Run dep ensure to install dependencies
  3. Run go build to create the binary (blog_example__go_web_db)
  4. Run the binary : ./blog_example__go_web_db

To run tests:

  1. Run dep ensure to install dependencies
  2. Run go test ./...

Create the birds table before running the application :

create table birds (
id serial primary key,
bird varchar(256),
description varchar(1024)
);

Before running the application, edit the connString variable inside the main function to specify your postgres database connection

Releases

No releases published

Packages

No packages published

Languages

  • Go 88.0%
  • HTML 12.0%