This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Setup NextJS on Ubuntu server (Digital Ocean, EC2,...) Terminal Commands | |
| #based on my YouTube video | |
| #Recommended: An ubuntu server with at least 2 GB memory to handle npm run build | |
| #login to server | |
| ssh root@ip_address | |
| #Upgrade Server - may take a few minutes | |
| sudo apt update | |
| sudo apt upgrade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--- Tambahkan setelah app.css ---> | |
| <link href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css" rel="stylesheet"> | |
| <link href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.dataTables.min.css" rel="stylesheet"> | |
| <style> | |
| /*Form fields*/ | |
| .dataTables_wrapper select, | |
| .dataTables_wrapper .dataTables_filter input { | |
| color: #4a5568; /*text-gray-700*/ | |
| padding-left: 1rem; /*pl-4*/ | |
| padding-right: 1rem; /*pl-4*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Controllers\API; | |
| class ResponseFormatter | |
| { | |
| protected static $response = [ | |
| 'meta' => [ | |
| 'code' => 200, | |
| 'status' => 'success', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ==== CENTOS 7 LEMP STACK INSTALLATION ==== | |
| 0. Make sure the centos 7 server have internet connection | |
| 1. Install the EPEL Repository | |
| sudo yum -y install epel-release | |
| 2. Install the Remi Repository | |
| sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm | |
| 3. Install Nginx |