Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 892 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 892 Bytes

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 👋