Kiri, the URL shortener that slices your long links into bite-sized pieces.
"Kiri" (切り) in Japanese can mean "slice", and that's exactly what this service does your URLs – trim them for easier sharing.
-
Navigate to the root directory of the project
-
Spin up the api and postgres container with docker-compose
docker compose up
Alternatively, add the -d
flag to run the containers in the background.
docker compose up -d
docker compose down
- Pre-requisites
-
Kiri depends on Postgres for data storage. Ensure that you have an instance running locally with properties that match the
ConnectionString
value in your appsettings.Local.json file. -
Start the API by running the following command from the root directory of the project.
dotnet run --project src/Kiri.Api
Ref -> http://localhost:9000/swagger/index.html
ShortenURLRequest
POST
/api/shorten
{
"url": "https://genius.com/Rick-astley-never-gonna-give-you-up-lyrics"
}
ShortenURLResponse
{
"url": "http://kiri.ly/a1b2c3d4"
}