library

module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MIT

README

Library

Sample server code generation via go-swagger.

Build Status   Contributing   Open Issues   License  


How to run
$ docker stack deploy -c stack.yml postgres 

OR

$ docker-compose -f stack.yml up

$ export POSTGRESQL_URL=postgres://user:password@localhost:5432/library?sslmode=disable

$ migrate -database ${POSTGRESQL_URL} -path db/migrations up

$ go run ./cmd/library-server/... --port 3000
Docker
$ docker build .
Documentation:
$ swagger serve ./swagger/swagger.yml

Directories

Path Synopsis
cmd
Package restapi Library API Simple Library API Server Schemes: http Host: localhost BasePath: / Version: 1.0.0 Contact: <[email protected]> Consumes: - application/json; charset=utf-8 Produces: - application/json; charset=utf-8 swagger:meta
Package restapi Library API Simple Library API Server Schemes: http Host: localhost BasePath: / Version: 1.0.0 Contact: <[email protected]> Consumes: - application/json; charset=utf-8 Produces: - application/json; charset=utf-8 swagger:meta

Jump to

Keyboard shortcuts

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