# basic guide with git

1\) Copy .env.example to .env:

```shell
cp .env.example .env
```

ATAU

Copy-Item .env.example -Destination .env

  
Kalau env.example takdak, manual ja buat file pastu copy content dari project lain

2\) Install dependencies:

composer install

\*\*In case kalau problem gak, run composer du

3\) Generate application key:

php artisan key:generate

  
4\) Set up database (if required):

\- Update .env with your database credentials.  
   
\- Run migrations (if needed):  
   
 php artisan migrate

  
5\) Install Node.js dependencies (if using Vite or frontend assets):

npm install

  
6\) Build frontend assets (if applicable):

npm run build # or npm run dev for development (has hot refresh)

  
8\) Start the Laravel development server (if needed):

php artisan serve

  
9\) (Optional) Run queue workers if using queues:

php artisan queue:work

\~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Everytime modify the web.php or routing, run this command

art optimize