A simple go web application that helps you keep a track of books read.
To run the server on your system:
-
Make sure you have dep installed
-
Run
dep ensure
to install dependencies -
Run
swag init
to create documentation -
Run
go build
to create the binary (go_web_app_with_swagger_and_test_cases
) -
Run the binary :
./go_web_app_with_swagger_and_test_cases
-
To generate swagger documentation
swagger generate spec -o ./swagger.json
To run tests:
- Run
dep ensure
to install dependencies - Run
go test ./...