go-postgres-cicd

command module
v0.0.0-...-593a4e9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

README

Go PostgreSQL CI/CD

Project to test CI/CD pipeline

Endpoints

Root URL: localhost:8080/

Method URL Description
GET /products Fetch list of products
GET /products/{id} Fetch a product by ID
POST /products Create a new product
PUT /products/{id} Update an existing product retrieved by ID
DELETE /products/{id} Delete a product by ID

Build

make build

Test

/!\ WARN Requires Docker-in-Docker if run from CI/CD

All tests
make test
Unit tests
make unit-test
Integration tests

/!\ WARN Requires Docker up and running

make integr-test
Show coverage
# cli
make coverage-cli

# browser
make coverage-browser

Run

/!\ WARN Requires Docker up and running

/!\ WARN Requires PostgreSQL database

make start-postgres

make run

Container

/!\ WARN Requires Docker up and running

Build
make container-build CONTAINER_TAG=dev
Push
make container-push CONTAINER_TAG=dev

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