/url-shortener

PHP application that shortens long URL's

Primary LanguagePHP

URL SHORTENER

Overview

A simple php project to shorten long URLs, to make it easier to share and manage

Screenshot of the landing page

Features

  • Shorten long URLs into short and manageable versions
  • Redirect users from the shortened URLs to the original long URLs

Installation

To run this project, follow these steps:

  1. Clone the repository
git clone https://github.com/cedricahenkorah/url-shortener.git
  1. Navigate to the project directory
cd url-shortener
  1. Set up your sqlite db
cd database
touch database.sqlite
  1. Create a copy of the .env file
cp .env.example .env
  1. Install composer dependencies
composer install
  1. Generate a secure key for your application
php artisan key:generate
  1. Run the migrations
php artisan migrate
  1. Start your web server
php artisan serve
  1. Access the application

Navigate to http://localhost:8000 (or the URL specified in the artisan serve command)