# AL-HAJ FAW Final Admin Editable

This version keeps frontend fallback, but also seeds the same data into Strapi Admin Panel.

Expected Admin entries after backend starts:
- Hero Slide: 7 records if 7 hero images exist
- Product / Model: 8 records
- Video: 1 YouTube video
- Gallery Item: image + YouTube video
- Production Section: 4 records
- Support / Service: 3 records
- Spare Part: 3 records
- Dealer: 1 record
- Alert: 2 records
- Website Settings + Theme Settings

## Run Backend

cd backend
copy .env.example .env
npm install
npm run develop

## Run Frontend

Open new CMD:

cd frontend
copy .env.local.example .env.local
npm install
npm run dev

## Open

Admin:
http://localhost:1337/admin

Website:
http://localhost:3000

## If Admin Still Shows Empty

Stop backend and run inside backend folder:

del .tmp\data.db
rmdir /s /q .cache
rmdir /s /q build
npm run develop

Then refresh admin.

## Edit Flow

Admin Panel > Product / Model:
edit product title, description, image, sort order, active status.

Frontend will first use Admin data. If Admin API is unavailable, fallback data shows as backup.
