package
0.0.0-20241219012652-6f02d0cd6037
Repository: https://github.com/mukappalambda/go-examples.git
Documentation: pkg.go.dev

# README

Gin Demo

To start up the server locally:

make run

To build the docker image:

make build-image

To start up the docker container:

make up-container

To tear down the docker container:

make down-container

To add all dependencies:

go get .

To update all dependencies:

go get -u
go mod tidy

To test the endpoints:

# get all books
curl --include \
http://localhost:8080/books/

# add a new book
curl --include \
-X POST \
http://localhost:8080/books/ \
--data '{"id": 3, "author": "mark", "title": "mark'\'' book"}'