Skip to content

bdj-Razik/ecommerce-perfumes

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

43 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⚜️ Luxe Parfum β€” Enterprise eCommerce Platform

Laravel PHP License

A high-performance perfume eCommerce platform built with Laravel 12, designed to demonstrate professional backend architecture, scalable business logic, and enterprise-level API development.

This project showcases modern Laravel engineering practices including clean architecture, Redis caching, Stripe payments, and automated testing.


πŸ“Έ Screenshots

Homepage

Homepage

Product Page

Product Page

Admin Dashboard

Admin Dashboard


πŸ’Ž Project Overview

Luxe Parfum is a full-featured eCommerce system for premium fragrance retail.

The platform solves real-world retail challenges including:

  • Accurate historical profit tracking
  • High-performance product discovery
  • Secure online payments
  • Bilingual user experience (Arabic / English)
  • Enterprise-grade reporting

The system is designed to simulate a real production-ready retail platform.


🧠 System Architecture

The application follows a Layered Clean Architecture approach to ensure maintainability and scalability.

Client (Browser / Mobile)
        ↓
Controllers (HTTP Layer)
        ↓
Service Layer (Business Logic)
        ↓
Repositories (Data Access)
        ↓
Models (Eloquent ORM)
        ↓
MySQL Database
        ↓
Redis Cache & Queues

Key Principles

  • Thin Controllers
  • Business logic isolated in Services
  • Decoupled Data Access using Repositories
  • API Resources for structured JSON responses

πŸš€ Key Features

πŸ’³ Secure Payment Gateway

  • Full Stripe API integration
  • Payment Intents workflow
  • Webhook-based order synchronization

πŸ“¦ Inventory Management

  • Real-time stock tracking
  • Low stock detection
  • Automatic out-of-stock status

⚑ High Performance

  • Redis caching
  • Optimized database queries
  • Background job queues

πŸ“Š Business Intelligence Engine

  • Historical purchase & sale price snapshots
  • Profit margin analytics
  • Exportable reports (PDF & CSV)

🌍 Localization

  • Full Arabic (RTL) and English (LTR) support
  • Language-aware UI rendering

πŸ›οΈ Client Experience

The platform provides a modern shopping experience with:

  • Advanced product filtering
  • Real-time search suggestions
  • Persistent shopping cart
  • Interactive wishlist system
  • Multi-step secure checkout
  • Stripe-powered payments

❀️ Advanced Wishlist System

The wishlist system was engineered as a high-conversion user engagement tool.

Features include:

  • AJAX wishlist toggling
  • Public shareable wishlists
  • Move-to-cart functionality
  • Real-time UI updates
  • Dynamic recommendation system

πŸ“± PWA & SEO Enhancements

The platform includes modern web optimizations:

  • Progressive Web App (PWA) support
  • Service Worker offline caching
  • OpenGraph & Twitter metadata
  • SEO-friendly product URLs

πŸ‘€ User Account Dashboard

Users have access to a complete account management center:

  • Order history and tracking
  • Wishlist management
  • Address book (CRUD)
  • Password and security controls
  • Personalized dashboard insights

🧰 Tech Stack

Backend

  • Laravel 12
  • PHP 8.2
  • MySQL

Performance

  • Redis
  • Laravel Queues

Payments

  • Stripe API

Search

  • Laravel Scout

Documentation

  • Scribe API Documentation

Testing

  • PHPUnit

Frontend

  • Blade
  • Vanilla JavaScript
  • Chart.js

πŸ§ͺ Automated Testing

The project includes a comprehensive testing suite.

βœ” 31 automated tests βœ” 155 assertions βœ” Feature tests βœ” Unit tests βœ” API tests

Run the tests:

php artisan test

Example:

php artisan test tests/Feature/Api/OrderApiTest.php

πŸ” Security Features

The platform includes multiple layers of security:

  • Laravel Sanctum authentication
  • Role-based access control
  • Security headers (HSTS, CSP)
  • Rate limiting
  • Soft delete protection

πŸ“– API Documentation

The project includes a developer-friendly API documentation portal powered by Scribe.

Access the documentation:

/docs

Features:

  • Interactive request testing
  • OpenAPI export
  • Postman collection generation

βš™οΈ Installation

Clone the repository

git clone https://github.com/your-username/ecomm-perfumes.git

Install dependencies

composer install
npm install

Configure environment

cp .env.example .env
php artisan key:generate

Database setup

php artisan migrate --seed

Run the application

npm run dev
php artisan serve

πŸ§‘πŸ’» Development Workflow

Modern tooling was used to maintain code quality:

  • Composer dependency management
  • Vite asset bundling
  • Database migrations
  • Environment configuration

🎯 Engineering Focus

During development, the primary focus areas were:

  • Data integrity
  • System scalability
  • Performance optimization
  • Clean architecture
  • Developer experience

πŸ“Š Portfolio Value

This project was developed as a technical portfolio project to demonstrate:

  • Advanced Laravel architecture
  • REST API engineering
  • Scalable backend design
  • Real-world business logic implementation
  • Security-first engineering mindset (Cybersecurity focus)

πŸ‘¨πŸ’» Author

Yassin Ali Afifi

Cybersecurity Specialist & Backend Developer β€” Laravel & API Engineering

Specialized in web protection, secure code auditing, and building resilient production environments.


⭐ Support

If you find this project useful, consider giving it a star on GitHub.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Blade 47.4%
  • PHP 34.6%
  • CSS 9.5%
  • JavaScript 7.5%
  • Other 1.0%