Postingan

ReactJS | 1. Persiapan

Gambar
  1. Persiapan Persiapan Dan Beberapa Note Sebelum dimulai harus menginstall dan menyapkan beberapa dependency Dependency Node 16.12 keatas bisa di download dari website resminya Rekomendasi Node Yang LTS Install Dependency Lakukan npm isntall npm install Copy Tunggu sampai selesai Run Play .. /katalog-play/play/run Copy aplikasi tetap ada di localhost:2209 Install webpack Dependency npm install -G webpack Copy Run React npm run start Copy react akan membuka url localhost:3000 tapi bisa di close dan tetap menggunakan url localhost:2209 Run Build React Untuk Production Diusahakan sebelum commit progress react apalagi untuk production melakukan command di bawah untuk mengurangi size aplikasi dari  3mb  menjadi  1.2mb npm run build

Persiapan Visual Studi Code

Gambar
- Snippet untuk autotext / print_r otomatis suggesstion :        > F1 -> Configure User Snippets -> New global Snippet (jika belum ada buat baru) "Print to console" : {         "prefix" : "print_r" ,         "body" : [             "echo '<pre>';" ,                 "print_r($request->all()$1);" ,             "echo '</pre>';" ,             "exit();" ,             // "console.log('$1');",             // "$2"         ],         "description" : "Log output to console"     } {     "Print to console" : {         "prefix" : "dd" ,         "body" : [             "dd($1);" ,       ...

Persiapan mac macos untuk install project php

 Install Brew : https://indrawr25.blogspot.com/2021/12/install-brew-untuk-macos-dan-install.html?m=0 Install PHP :  brew update brew install php@7.3 brew link php@7.3 posisi file : /usr/local/opt/php@7.3/sbin/php-fpm --nodaemonize The php.ini and php-fpm.ini file can be found in: /usr/local/etc/php/7.3/ brew services restart php@7.3 -> tambahkan ke console supaya bisa terbaca phpnya      echo 'export PATH="/usr/local/opt/php@7.3/bin:$PATH"' >> ~/.zshrc         echo 'export PATH="/usr/local/opt/php@7.3/sbin:$PATH"' >> ~/.zshrc

Install Brew Untuk MacOs dan Install Library Menggunakan brew

Gambar
  Sumber : https://www.digitalocean.com/community/tutorials/how-to-install-and-use-homebrew-on-macos How To Install and Use Homebrew on macOS Applications Development Open Source By  Brian Hogan Last Validated on August 3, 2021   Originally Published on October 8, 2020   104.5k views Introduction The command line interface is a non-graphical way to interact with your computer. Instead of clicking buttons with your mouse, you’ll type commands as text and receive text-based feedback. The command line, also known as a shell, lets you automate many tasks you do on your computer daily, and is an essential tool for software developers. While the command line interface on macOS has a lot of the functionality you’d find in Linux and other Unix systems, it does not ship with a  package manager . A package manager is a collection of software tools that work to automate software installations, configurations, and upgrades. Package managers keep the software they insta...