Url shortener using cats effect, tagless final and http4s. This project is using hexagonal architecture.
- repository implementation (instead of the in-memory version)
sbt run
Payload:
{
"url": "http://google.com"
}
Response: 200 OK
{
"shortenedUrl": "http://localhost:8080/go/3fv14S",
"originalUrl": "http://www.google.com"
}
Response: 301 Permanent Redirect
to http://www.google.com
sbt test
sbt "IntegrationTest / test"