Url shortener API made with Go, Gin and Redis and documented with Swagger. Deploy to Railway using Redis Cloud.
This project use default enviroment variables, redis addr is '127.0.0.1:6379' and other values are empty. Unless other variables are found. Just exec:
go run .
The url for documentations is http://localhost:8080/swagger/index.html
To run all tests in project exec:
go test ./...
- GET /:id Redirect to original url.
- POST /create Create a new short url, if already exists returns previous url.
This project also have a gRPC version here.