Skip to content

Convert long URLs into customizable, shortened links

Notifications You must be signed in to change notification settings

aosousa/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener

Convert long URLs into shortened, customizable links.

Development Guides

Deployment (Docker)

To run the project via Docker, please make sure Docker is installed and working correctly in your machine. View Docker's official download and installation guide for more details.

  1. Navigate to the project's root folder using your terminal of choice.
  2. Build and start the database, server, and client containers.
docker-compose up -d

To stop the running containers, use the docker-compose stop command. To run them again, use the docker-compose up -d command.

To deploy the project without Docker, please view the instructions in the backend's README and in the frontend's README

Features

  • Create shortened version of a link, either with a custom link or with a generated code
  • Detect title of the original link when creating a new link

Create Link

  • View list of links created and number of times each one was visited

Home

  • Redirect to original link in a new tab after clicking or accessing the shortened link
  • Redirect to 404 page when trying to access a link through a short code that doesn't exist

404

  • Copy short link to clipboard

Copy to Clipboard

  • Edit a link's information (URL, title, code)

Edit Link

  • Delete a link

Delete Link

  • Light / Dark Theme - who doesn't like dark mode?

Light Theme Dark Theme

Tech Stack

Back end

  • Node.js (+ Express.js)
  • Prisma (ORM)
  • Mocha + Chai (Unit testing)
  • MySQL database

Front end

  • Vue 3
  • Pinia
  • Tailwind
  • Vitest + Vue Test Utils (Unit / Component testing)
  • Cypress (E2E testing)

Deployment

  • Docker + Docker Compose

About

Convert long URLs into customizable, shortened links

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages