Shortly is a URL shortener service.
Go version 1.17.2
go build ../shortlygo run .make rungo test -v ./... -tags=unitmake unit-testgolangci-lint run -c .golangci.yml -vmake lintdocker build -t shortly .docker run -p 6161:6161 shortlyApply development file to k8s
kubectl apply -f k8s/deployment.yaml📌 This service can run with 5 different pods. All pods use common data.
Swagger For API Documentation
Testify For Test
Install swagger
go install github.com/swaggo/swag/cmd/swag@latestSwagger Initialize
swag initDev
First of all you must run the project. http://localhost:6161/api/swagger/index.html
Production [Heroku]
📃 Shortly swagger API doc in live
❗️️Heroku may remove project data for it is free that's why you don't may see your data.