This sample application uses Echo as web application framework and Gorm as the backend database.
Clone repo:
git clone https://github.com/kodekloudhub/go-webapp-sample
Deploy app:
cd go-webapp-sample
go run main.go
Login on Web interface with test:test credentials./api/auth/loginStatus
/api/books
/swagger/index.html - Swagger interface
To run the tests - switch to another terminal in controller directory and run:
go test -v .
You should get PASS after running the tests.