go-postgres

command module
v0.0.0-...-a193a83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

Go postgres

Example project to test PostgreSQL integration in Go

Build

make build

Test

make test

Run

  1. start PostgreSQL in a container
make run-postgres
  1. run application
make run
  1. play a bit with Postman loading the prepared collection

REST endpoints

  • GET /products > Fetch a list of products in response to a valid
  • GET /products/{id} > Fetch a product in response to a valid
  • POST /products > Create a new product in response to a valid
  • PUT /products/{id} > Update a product in response to a valid
  • DELETE /products/{id} > Delete a product in response to a valid

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL