Shorten is URL shortener built with Laravel PHP and Laravel Livewire.
- Light and dark themes (auto selected by browser preference)
- Shorten link to link with short base62 code
- Avoid duplicate links by returning existing short link when duplicate original links are requested
- Track stats for links such as: number of times short link requested and number of times short link followed
- Viewable by adding /stats to the end of a short link (eg. https://s.ondo.dev/1/stats)
- Unit tests, feature tests, and continuous interaction tests
- PHP 7.4 or higher
- Composer
- NPM
- Database (MySQL, PostgreSQL, etc)
- Close the GitHub repository
git clone https://github.com/liamondo/shorten.git
-
Copy
.env.example
to.env
-
Install dependencies and compile
composer install
npm install
npm run dev
- Migrate the database
php artisan migrate
To view the project you can run php artisan serve
or use a local web server.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.