A RESTful API Microservice for Managing Book Details
before runing this project please create and .env
file and copy the details from .sample.env
file
To deploy this project run
# to build the binary for the project
go build
# then run the binary start the service
./library-app
you will see Book Server started at port 80
in the terminal
To deploy this project using K8s yaml file
# apply this command to create all the deployment present in the directory
kubectl apply -f k8s/
after successful creation of services you can access the endpoints using
localhost:30081
Please visit the API Documentation for the API Endpoints and the body data
To run the unit testing:
go test -coverprofile cover.out
To view coverage report in browser, run:
go tool cover -html=cover.out