/link-shortening

A pure javascript web app to store the links and convert them into 8-character brief links

Primary LanguageHTMLMIT LicenseMIT

License

Link Shortening

NodeJs Vuetify

This Project is a single-page website that can handle shortening long URLs in Javascript. Backend is developed using node.js and express. On the other hand, Vuetify handles the Frontend side. Other details of the project are listed below:

  • Short URL is created using CRC32 encoding system.
  • Adding new URLs or Delete old ones are handled by REST API.
  • Every URL is stored in a MongoDB provided by free Atlas Cloud services.

NOTE: Atlas is NOT available in Iran, So while working with this repo you have to use a VPN connection!

  • This repo is runnable using Docker

  • Using Vutify as frontend is responsive and graphically acceptable.

How to Install...

The easiest way to run the code is using docker-compose

Step 1

Ensure you have installed Docker and docker-compose on your system. You can find installation instructions in the links below:

To check if Docker and docker-compose are correct, you can run the codes below:

docker -v
docker-compose -v

If there were no errors then everything is working OK.

Step 2

After you have installed Docker and docker-compose go to the main folder and run the code below:

docker-compose up

Docker automatically downloads dependencies and runs the server.

Step 3

You can access the web app through the location below:

http://localhost:3000