Skip to content

ficopang/LelanginAja

Repository files navigation

Laravel Logo

Cara pake git + github

Intall git (https://git-scm.com/downloads).

cara clone: "git clone https://github.com/ficopang/LelanginAja.git"

kalo mau tambah fitur/update

  1. pull (ambil update dari commit): "git pull"
  2. bikin branch baru: "git branch nama-branch"
  3. pindah branch: "git switch nama-branch"
  4. code, code, and code :D

cara commit

  1. "git add ."
  2. 'git commit -m "commit-message"'
  3. "git push origin nama-branch"
  4. ganti branch ke main, dan git pull

Requirement sistem

  • 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)

Setup

  • 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

About Laravel

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:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published