# AL-HAJ FAW Final Seed Fixed

This version does NOT depend on old seed flags. On backend start, it checks every main content type.
If Hero Slides / Products / Video / Dealers / Production / Service / Spare Parts / Gallery are empty, it creates first entries automatically.

## Fresh run on laptop

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

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

Admin:
http://localhost:1337/admin

Website:
http://localhost:3000

## If admin is still empty
Stop backend and run inside backend folder:

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

Then create admin user again.

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