A simple php project to shorten long URLs, to make it easier to share and manage
- Shorten long URLs into short and manageable versions
- Redirect users from the shortened URLs to the original long URLs
To run this project, follow these steps:
- Clone the repository
git clone https://github.com/cedricahenkorah/url-shortener.git
- Navigate to the project directory
cd url-shortener
- Set up your sqlite db
cd database
touch database.sqlite
- Create a copy of the .env file
cp .env.example .env
- Install composer dependencies
composer install
- Generate a secure key for your application
php artisan key:generate
- Run the migrations
php artisan migrate
- Start your web server
php artisan serve
- Access the application
Navigate to http://localhost:8000 (or the URL specified in the artisan serve command)