Info Pemrograman
Pemrograman Teknik Informatika dan Robotika
Saturday, September 7, 2024
Progam PHP CI Penjadwalan Kelas Belajar
Sunday, October 29, 2023
Instalasi Vue Tempalate Hasil Download
Untuk memulai lakukan langkah-langkah berikut:
- Unduh projek/template
- Pastikan node.js sudah terinstal
- Type in Command Prompt (CMD)
npm install
in the source folder wherepackage.json
is located - Type in Command Prompt (CMD) go to project directory and run
npm run dev
to start the development server
npm tasks:
npm run dev
- starts a development server
Saturday, October 28, 2023
Creating a Vue Application
1. Download dan install Node.js
2. Jalankan CMD
Microsoft Windows [Version 10.0.17134.1304]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\fuad hasan>e:
E:\>mkdir vue-web
E:\>cd vue-web
E:\vue-web>npm create vue@latest
Need to install the following packages:
create-vue@3.8.0
Ok to proceed? (y) y
Friday, October 27, 2023
Laravel CORS Middleware Setting
What is CORS?
CORS stands for Cross-origin resource sharing. The concept is related to the same origin policy which all browsers implement. In a nutshell, this policy says that a web site may not perform web requests to a different web site, or to be precise, “origin” (scheme, hostname, port number). CORS is a mechanism that can relax such restrictions. While the browser enforces restriction, CORS must be implemented on the server side to let the browser know that it may relax the restrictions.
Install Laravel v10.28.0 (PHP v8.1.4) di Windows
1. Download Composer dan install (Pastikan terkoneksi internet)
2. buka CMD
Microsoft Windows [Version 10.0.17134.1304]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\fuad hasan>composer
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 2.6.5 2023-10-06 10:11:52
3. buat project laravel masuk ke folder XAMPP/HTDOCS
C:\Users\fuad hasan>E:
E:>cd xampp\htdocs
E:\xampp\hdocs>composer create-project --prefer-dist laravel/laravel:^10.0 web-laravel
4. Jalankan Laravel
E:\xampp\hdocs\web-laravel>php artisan serve
Contoh Query pada Laravel
<?php