Intall git (https://git-scm.com/downloads).
cara clone: "git clone https://github.com/ficopang/LelanginAja.git"
kalo mau tambah fitur/update
- pull (ambil update dari commit): "git pull"
- bikin branch baru: "git branch nama-branch"
- pindah branch: "git switch nama-branch"
- code, code, and code :D
cara commit
- "git add ."
- 'git commit -m "commit-message"'
- "git push origin nama-branch"
- ganti branch ke main, dan git pull
- Composer atau Laravel 10, yang di install dan bisa running di komputer kamu. Guide install laravel ada disini (https://laravel.com/docs/10.x/installation).
- PHP 8.1 keatas
- MySQL
- Local server untuk running database, Misalnya MAMP, Apache atau WAMP (XAMPP untuk Windows)
- karena code di repo ini tidak ada file .env dan folder "vendor", jadi kamu perlu generate file dan folder tersebut dengan bikin project baru di laravel. dengan perintah "laravel new nama-project-baru" atau jika pake composer "composer create-project laravel/laravel nama-project-baru"
- clone repo ini ke lokal komputer kamu, kemudian copy file .env dan folder "vendor" ke folder tujuan repo.
- Edit .env dan arahkan ke database yang ada dan running, pada lokal kita
- buat database baru pada MySQL. kosongkan saja data dan table nya karena kita akan migrasi dari kode laravel
- jalankan perintah 'composer install' untuk install requirement-requirement dari code di repo
- jalankan perintah 'composer dump-autoload' untuk perbarui file file di "vendor"
- jalankan 'php artisan migrate:refresh' untuk membuat tabel-tabel yang diperlukan kedalam database
- apabila berhasil, kita bisa menjalankan 'php artisan migrate:status' akan terlihat tabel-tabel yang sudah diexpor kedalam database
- jalankan 'php artisan db:seed' untuk memasukan data dummy ke database
- jalankan 'php artisan serve' untuk menjalankan app
- buka http://localhost:8000 (atau sesuakian dengan port di .env)
- jika muncul website di localhost di browser, berarti setup sudah berhasil
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.
If you don't feel like reading, Laracasts can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.