Installation

Create a database

This step could be skipped if you have already created a separate database for the project.

  1. Create a new MySQL database

  2. Create a new username and password (*optional)

  3. Assign full privileges to your database

Upload the app

Upload or copy a content of the directory src to a root web directory on your server. In the most cases it's called public_html, html, or domain.com.

Set up permissions

After installing Shorty, you may need to configure some permissions. Directories within the storage and the bootstrap/cache directories should be writable by your web server.

Set the access permissions (CHMOD) to 775 to the following files and folders recursively:

  • .env

  • bootstrap/cache

  • storage

Set public directory

Configure your server's public web root to point to the public directory of the app. For example, if you have uploaded the app in domain.com folder, your document directory should be changed to domain.com/public folder.

Install the app

Run a bash (or zsh) terminal and enter the app's root directory (i.e. domain.com, not domain.com/public).

Open the file .env in code editor and set the following variables. Please note that this file might be hidden by your operating system.

APP_URL=your-domain-name

DB_CONNECTION=mysql
DB_HOST=database-host-ip
DB_PORT=database-host-port
DB_DATABASE=database-name
DB_USERNAME=database-username
DB_PASSWORD=database-password

Run the following commands to install basic dependencies, fill up the database and create default users:

# install dependencies
composer install
composer dump

# cache config
php artisan config:cache

# create a symlink for uploaded files
php artisan storage:link

# seed database
php artisan migrate:fresh --seed

Once installation process is done, you could start using the app.

Default users have the following credentials:

Last updated

Was this helpful?