/slink_backend

An ExpressJS backend for URL shortener, Slink.

Primary LanguageJavaScript

SLINK URL Shortener Backend

This is the backend for the URL Shortener service 'Slink'. The backend is done in ExpressJS and the database is MongoDB NoSQL DB.

The demo is available at https://s-link.netlify.app/.

The implementation for the frontend can be found here https://github.com/SyedaSamia/slink_frontend

Screenshot

Capabilities

A user can enter an arbitrary URL "X" on the website and get a shortened URL in return.

On visiting the shortened URL, the user gets redirected to “X".

The shortening has to be idempotent, i.e. a given URL always has to yield the same short URL as a result.

On the website, the user can also see stats for all shortUrls that have been generated (by anyone) on the site: For each shortUrl, how often did someone attempt to shorten that specific URL? For each shortUrl, how often was it visited?

Project Architecture

The architecture for the project is depicted in the following diagrams.

Screenshot Screenshot