Step 3: Server Requirement and Coding Setup

Requirement

Server Must Have

  1. PHP Version: Laravel 10 requires a minimum PHP version of 8.1.

  2. Server Access: You need SSH (Secure Shell)/ terminal access to the server to git version control and managing composer.

  3. Composer: Ensure Composer is able installed for managing Laravel's PHP dependencies.

  4. Database: Support for MySQL databases .

Server Option

  1. SSL Certificate: Secure communication with clients using an SSL certificate.

  2. Node.js and npm: Install Node.js for managing frontend dependencies and building Vue.js assets. It is ok if server don't have Node.js since developer can install at local host and push to server.

Switching Domain to Live Host

  1. At backend > app > Http > Controllers > Controller.php

If mapmama is running at local environment, return false, else if live environment, return to true

  1. At frontend > src > store.js

command the part of

    // < LOCAL
    // domainBackend: "http://127.0.0.1:8000",
    // domainFrontend: "http://localhost:8082",
    // > LOCAL

if you are running at the live environment

4. Database Configuration

At backend > .env, command the part of

# < LOCAL
# LIVE_SERVER=0
# FRONTEND_URL=http://localhost:8082
# APP_URL=http://127.0.0.1:8000
# DB_CONNECTION=mysql
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=mapmama-vue-laravel
# DB_USERNAME=root
# DB_PASSWORD=
# > LOCAL
```

if you are running at the live environment

Last updated