Skip to content

Installation

Min Gu Kang edited this page Jul 16, 2020 · 2 revisions
  1. Clone or download the repository and upload to your server.

  2. Installer Laravel dependencies with composer install

  3. Install Node.js dependencies with npm install

  4. Copy the file .env.example to .env and add the following information:

  • Database credentials (DB_HOST, DB_PORT, ...)

  • Application url (APP_URL).

  1. Generate application key with php artisan key:generate

  2. Generate JWT key with php artisan jwt:secret

  3. Launch database migrations with php artisan migrate --seed, and php artisan migrate:refresh --seed for auto cleaning the database.

  4. Build front with npm run dev or npm run prod for production builds.

  5. Run php artisan storage:link to create a symbolic link to storage.

  6. Set your host to serve the public folder.

.htaccess is preconfigured for Vue in the public directory.

If SSH access and/or site root directory change is not not accessible, add the following code on your Root directory's .htaccess file.

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

Please note that this approach may NOT be secure, as the contents of the root directory is still visible.

Clone this wiki locally