Table of Contents
This project is a basic URL-shortening service.
The project requires PHP v 8.02. You can download here. And manually upgrade PHP version of your desktop using this link Alternatively, you can install xampp server from here
Make sure you have composer on your pc to run this project. You can download from here
-
Clone the repository
git clone https://github.com/codert0109/URL-Shortening-Service-Laravel-FullStack.git
-
Install NPM packages
composer install
-
Create a
.env
file using the configuration in.env.example
touch .env
-
Configurate the Database Create your own MySQL database which saves urls named urlshorted(You can change this db name in .env). If needs, change your username and password in .env
-
Migrate and Seed the Database
php artisan migrate
php artisan db:seed
-
Start the project
php artisan serve
-
Deploy the project When deploy this project, make sure that you have changed DOMAIN_URL in .env. Also make sure that set the cron job to delete unactive links which is not visited for last 30 days/
-
Run below command
php artisan test
Distributed under the MIT License.