# AL-HAJ FAW Final Corrected Ready Website

Included:
- 7 uploaded hero slides seeded into Admin and frontend
- Uploaded product images mapped to products
- Tiger VR portrait converted to equal landscape format
- Product listing and product detail pages fixed
- Homepage YouTube video restored
- Gallery sample YouTube video added
- Dealers, Careers, Production, Service, Spare Parts dynamic
- Admin-friendly fields and first entries on fresh run

## Laptop Run

### Backend/Admin
Open CMD in extracted folder:

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

Admin:
http://localhost:1337/admin

### Frontend
Open NEW CMD:

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

Website:
http://localhost:3000

## Very important for fresh seed
If old data appears or admin sections are empty, stop backend and run from backend folder:

del .tmp\data.db
del .tmp\final-seeded.flag
del .tmp\enterprise-seeded.flag
del .tmp\alhaj-seeded.flag
rmdir /s /q .cache
rmdir /s /q build
npm run develop

Then create admin user again and enable Public find/findOne permissions for custom content types.

## Public Permissions
Settings > Users & Permissions > Roles > Public:
Enable find/findOne for:
Alert, Dealer, Hero Slide, Product, Production Section, Spare Part, Support Service, Video, Gallery Item, Career Vacancy, Website Setting, Theme Setting.
