Assessment

Implement a URL Shortner System

Requirements

  • PHP Version 8.1

Installation

  • Clone the repository git clone https://github.com/Arup-paul/url-shortner.git

Install Backend

  • cd into the project directory cd url-shortner

  • Install the Composer dependencies composer install

  • Set Up .env File cp .env.example .env

  • Generate an application key: php artisan key:generate

  • Configure Database

  • DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=your_database_name DB_USERNAME=your_database_username DB_PASSWORD=your_database_password

  • Run Migrations php artisan migrate

  • Start the Development Server php artisan serve

Install Frontend

  • Install the npm dependencies npm install
  • Start the Development Server npm start