Skip to content

Palindromic URL shortener SPA built with PHP 8.1+, Laravel 10, Vue 3, Tailwind CSS, Vite, and MySQL. Includes Swagger specs.

Notifications You must be signed in to change notification settings

kbtale/Palindot

Repository files navigation

Palindot

A URL shortener SPA built with Laravel and Vue 3 that creates palindromic short codes.

Laravel Vue.js Tailwind Swagger Pest


Implementation Details

  • Slug Generation: The core logic (app/Models/Url.php) hashes the target URL using sha256, takes a substring, and mirrors it (e.g., abcabc + cbaabccba) to enforce a palindrome.
  • Backend: Laravel 10 acting as a REST API.
    • Auth: Laravel Sanctum.
    • Docs: zircote/swagger-php annotations in controllers.
  • Frontend: Vue 3 + Tailwind CSS.
    • State: Standard Vue reactivity.
    • Routing: Vue Router.
  • Testing: Pest PHP.

Stack

  • PHP: 8.1+
  • Framework: Laravel 10
  • Frontend: Vue.js 3, Tailwind CSS
  • Bundler: Vite
  • Database: MySQL

Local Development

1. Setup

git clone [https://github.com/kbtale/Palindot.git](https://github.com/kbtale/Palindot.git)
cd Palindot

composer install
npm install

cp .env.example .env
php artisan key:generate

About

Palindromic URL shortener SPA built with PHP 8.1+, Laravel 10, Vue 3, Tailwind CSS, Vite, and MySQL. Includes Swagger specs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published