The URL shortening service allows users to shorten long URLs into shorter ones, which is convenient for sharing links on social media, messengers, and other applications. The project uses the Laravel framework and MySQL database.
This is just the skeleton of the application. Customize as your heart desires.
Project uses TailwindCSS and JSON:API library
- Node.js
- npm
- Composer
- PHP >= 8.1
- Ctype PHP Extension
- cURL PHP Extension
- DOM PHP Extension
- Fileinfo PHP Extension
- Filter PHP Extension
- Hash PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PCRE PHP Extension
- PDO PHP Extension
- Session PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
To install the project, follow these steps:
- Clone the project
git clone https://github.com/termit5606/urlshortener.git- Navigate to the project directory:
cd urlshortener- Install dependencies using composer:
composer install- Initialize NPM:
npm init- Create a .env file based on the example:
cp .env.example .env- Generate an application key:
php artisan key:generate- Configure the database connection in the .env file:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database_name
DB_USERNAME=database_user
DB_PASSWORD=database_password- Run migrations to create tables in the database:
php artisan migrate- Start the server:
php artisan serve- You are beautiful :)