Skip to content

arshohag/url-shortener

Repository files navigation

URL Shortener

URL Shortener

Introduction

This is a URL shortener featuring a Laravel backend and a Vue.js frontend.

It's main features are:

  • Shorten links
  • Short URL format: example.com/[hash].
  • The Short URL Validation & Duplicate Check.
  • Input URL validation.
  • The URL shortened till 6 symbols hash, which contains alphanumeric symbols.
  • List for previously created URLs.
  • Scan Input URL for Malware.
  • Short URL redirection to the original URL.
  • Vue frontend interacting with the Laravel API

Installation

  1. Clone this repository
git clone git@github.com:arshohag/url-shortener.git
  1. Install dependencies
composer install
  1. Copy .env.example to .env
cp .env.example .env
  1. Generate app key
php artisan key:generate
  1. Set these keys in .env.
APP_URL
MIX_APP_URL
DB_HOST
DB_PORT
DB_DATABASE
DB_USERNAME
DB_PASSWORD
CLOUDMERSIVE_API_KEY
CLOUDMERSIVE_BASE_URL
  1. Run Migrations
php artisan migrate
  1. Install dependencies
npm install
  1. Compile dependencies
npm run dev

URL Panel

3rd Party API

For scanning safe URL, cloudmersive is used. Check their documentaion and create a free account to get an API key.

Contributing

Pull requests are welcome. Please open an issue to discuss.

License

GPL-3.0-only. Please see the license file for more information.