ukadev/uka-url

Simple URL shortener powered by Lumen

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 3

Type:project

2.0.1 2021-02-26 00:21 UTC

README

Built with Lumen 8.x, Bootstrap v5 and jQuery-3.5.1

See the DEMO or just go down to the screenshot

Prerequisites

To make the application working you are going to need:

  • LAMP environment or equivalent with mod_rewrite enabled
  • composer

Installation

Follow the next instructions:

  • Open console/terminal and run:
    git clone https://github.com/ukadev/uka-url.git
  • Enter into the cloned folder and run:
    composer install
  • Open the file .env in the application root directory (if doesn't exist, copy it from .env.example) and modify the following variables with your database connection details:
    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=homestead
    DB_USERNAME=homestead
    DB_PASSWORD=secret
  • After configure the database variables, execute the command from the root of the application:
    php artisan migrate
  • Set up your virtual host to point to the folder called public as the website root folder. You can use the next example if you want it (may require modifications):
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/public
        <Directory /var/www/public>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all
                Order Deny,Allow
                Allow from all
                Require all granted
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Extra notes

  • If you want to add a value to the KEY variable of the .env file, you can execute the following command in the console/terminal and paste it there:
    php -r "echo md5(uniqid()).\"\n\";"

ScreenShot