Run docker-compose
, it will start api
, redis
and will expose api port to host.
docker-compose up
sbt test
# Shorten
curl -X POST http://localhost:9000/url=http%3A%2F%2Fyahoo.com
# Call shortened url
curl -X GET http://localhost:9000/igDpdNx
Run docker-compose
, it will start api
, redis
and will expose api port to host.
docker-compose up
sbt test
# Shorten
curl -X POST http://localhost:9000/url=http%3A%2F%2Fyahoo.com
# Call shortened url
curl -X GET http://localhost:9000/igDpdNx