Toolsaty (Toolsaty.com) was built as a professional e-commerce platform for the Saudi market, specializing in equipment, spare parts, and repair tools for phone and electronics shops. The project is more than a store: it is a complete ecosystem of four specialized interfaces working together on the same database.
The project's four interfaces
1. Storefront:
The interactive customer-facing interface, featuring a product catalog; advanced filters by category, price, and brand; product detail pages with image galleries; a smart cart that supports both guests and registered members; a multi-step checkout; real-time order tracking; ratings and reviews; a newsletter; and a tech blog.
2. Admin Dashboard:
A professional dashboard with interactive charts (Chart.js) showing sales, revenue, orders, and best-selling products. It includes full management of products, categories, brands, orders, customers, withdrawal requests, employees (HR module), settings, coupons, and reports. A multi-level JWT permission system (super_admin, admin, manager) allows each role's permissions to be customized.
3. Affiliate Dashboard:
A complete affiliate marketing system: a unique referral link for each affiliate, real-time click and sales tracking, automatic commission calculation, bank withdrawal requests, performance statistics, and ready-made marketing materials.
4. Instructor Dashboard (Toolsaty Academy):
A built-in learning section for selling training courses in electronics repair. Each instructor has a dedicated dashboard to manage their courses, students, revenue, and completion certificates.
Advanced technical features
- Modern SPA architecture: Four single-page applications built with Vanilla JavaScript and Vite for fast builds and development, all consuming a shared REST API.
- Secure JWT authentication: An authentication system based on JSON Web Tokens with role-based access control (RBAC), supporting three user types (admin, customer, instructor).
- Secure file uploads: An upload system that checks each file's actual MIME type (not its extension) to block executable files, assigns random names with random_bytes to prevent guessing, and blocks PHP execution in the uploads folder.
- Smart maintenance mode: An advanced maintenance mode that can open the site to specific IPs, or through a special bypass key (preview key) with a 24-hour cookie, for review before launch.
- Professional SEO: A dynamic Sitemap.xml, server-side meta tags for crawlers, clean product URLs (/product/slug), structured data, and optional AMP support.
- Full RTL support: The entire interface is in Arabic with RTL support, on an architecture that allows English to be added later.
- Hardened security: Prepared statements in every query, bcrypt for passwords, CSRF protection, protection against XSS and SQL injection, and .env and .sql files protected via .htaccess.
- Multiple payment methods: Card payments, bank transfer with receipt upload, and cash on delivery.
Results
- Launched a complete platform with a modern SPA architecture that rivals the largest e-commerce platforms.
- A scalable infrastructure that supports adding thousands of products and users without affecting performance.
- Significantly improved the admin experience through an interactive dashboard that shows KPIs in real time.
- An additional revenue stream for the company through the affiliate system and the training academy.
- A very fast user experience thanks to the SPA architecture (no page reloads).
- A fully secure website that complies with OWASP Top 10 best practices.






