Step 3: Server Requirement and Coding Setup
Requirement
Server Must Have
PHP Version: Laravel 10 requires a minimum PHP version of 8.1.
Server Access: You need SSH (Secure Shell)/ terminal access to the server to git version control and managing composer.
Composer: Ensure Composer is able installed for managing Laravel's PHP dependencies.
Database: Support for MySQL databases .
Server Option
SSL Certificate: Secure communication with clients using an SSL certificate.
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
At backend > app > Http > Controllers > Controller.php
If mapmama is running at local environment, return false, else if live environment, return to true

At frontend > src > store.js
command the part of
// < LOCAL
// domainBackend: "http://127.0.0.1:8000",
// domainFrontend: "http://localhost:8082",
// > LOCALif 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

Make sure the database is exist and able to config at the server
Last updated