# Localhost Setup Notes

1. Install PHP MySQL driver if APIs show `could not find driver`:

```bash
sudo apt update
sudo apt install php-mysql -y
```

2. XAMPP MySQL users can set this in backend `.env`:

```env
DB_HOST=localhost
DB_PORT=3306
DB_SOCKET=/opt/lampp/var/mysql/mysql.sock
DB_NAME=anshul_food_products
DB_USER=root
DB_PASS=
```

3. Import migrations in order:

```sql
SOURCE database/migrations/001_create_schema.sql;
SOURCE database/migrations/002_checkout_order_management.sql;
SOURCE database/seeds/001_seed_initial_data.sql;
```

4. Start backend from backend root:

```bash
php -S localhost:8000 -t public
```
