/Levali-UrlShortener

Levali is a URL shortener that counts clicks.

Primary LanguageC#MIT LicenseMIT

Levali-UrlShortener

Levali is a URL shortener that counts clicks.

Features

  • URL shortening;
  • Click count;
  • URLs expiration;
  • Lazy removal of expired URLs from the database;
  • Periodically run a job to remove expired URLs from the database.

System Design

How to use?

After cloning the project to your machine you can use the following commands:

# Run application
$ docker-compose up --build --scale api=2

# Configure database
$ docker exec -it levali-sqlserver bash
$ cd docker-entrypoint-initdb.d/ && ./init-db.sh && exit

# Stop application
$ [Ctrl] + c
$ docker-compose down

Endpoints

Postman collection


Made by Isaac Allef 👋