The project consists of two main services:
- Shortener Service: Handles the creation of short URLs.
- Redirector Service: Handles the redirection from short URLs to the original URLs.
-
Clone the repository:
git clone https://github.com/onemoreslacker/shortener.git
-
Navigate to the project directory:
cd shortener -
Create a
.envfile from the example:cp deploy/.env.example deploy/.env
-
Run the services using Docker Compose:
make up
This will start the shortener and redirector services, along with a MongoDB instance and a Caddy reverse proxy.
You can access web interface via the link http://localhost:80, paste link which you want to shorten and get the shortened link.

