MIKECHITI/sanaa — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a complete demo online marketplace called Sanaa Ya Kenya for authentic Kenyan handmade ornaments, where customers can register, browse products by category, region, price, and rating, view product details, add items to a cart, and check out using Safaricom Daraja Mpesa STK Push.

Use PHP and MySQL for a simple local setup, with clean Bootstrap 5 pages. I need customer login, artisan login, and admin login. Artisans should have a dashboard where they can upload products with images, manage listings, see orders, track earnings, and request Mpesa withdrawals. Admins should be able to approve or reject products, manage users, view orders, and see platform stats.

Please include the database schema with demo data, safe authentication, password hashing, session protection, CSRF protection on forms, validated image uploads, and prepared database queries. Add the Mpesa callback and payment status polling so checkout can show pending then success. Include clear setup instructions for running it locally with demo accounts. Look up current Daraja docs online if needed.

Want more depth? Deep Reverse