Skip to content

codert0109/URL-Shortening-Service-Laravel-FullStack

Repository files navigation

Url Shortening Website using Laravel as FullStack

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License

About The Project

This project is a basic URL-shortening service.

Built With

Getting Started

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

Prerequisites

Make sure you have composer on your pc to run this project. You can download from here

Installation

  1. Clone the repository

    git clone https://github.com/codert0109/URL-Shortening-Service-Laravel-FullStack.git
  2. Install NPM packages

    composer install
  3. Create a .env file using the configuration in .env.example

    touch .env
  4. 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

  5. Migrate and Seed the Database

    php artisan migrate
    php artisan db:seed
  6. Start the project

    php artisan serve
  7. 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/

Test

  1. Run below command

    php artisan test

Usage

To add url, input the long-url and click submit.

If a url is not visited for 30 days, then it will automatically be removed.

License

Distributed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published