Jimma Coffee Express is a high-performance, secure, and visually stunning e-commerce solution for coffee retailers. This project has been meticulously refactored from a legacy codebase into a production-ready, enterprise-grade application featuring robust security, optimized database interactions, and a premium user experience.
- Secure Authentication: Passwords stored using industry-standard
bcrypthashing. - SQL Injection Prevention: 100% PDO Prepared Statements across all modules (Storefront & Admin).
- Session Protection: Robust session guards for administrative areas with proper termination and validation.
- Sanitization Pipeline: All user inputs are sanitized and validated through a multi-layer filter system.
- Centralized Configuration: Decoupled environment variables from core logic for easy staging-to-production migration.
- Optimized Performance: Minimized database overhead with efficient query patterns and selective fetching.
- Unified Branding: A consistent, premium UI with smooth micro-animations and responsive layout.
- Dynamic Cart & Wishlist: Real-time updates and inventory-aware logic.
- Enterprise Checkout: Atomic transaction logic ensures data integrity during order placement.
- Full Admin Control: Centralized dashboard to manage products, monitor orders, and handle user inquiries.
- Backend: PHP 7.4+ (Logic & API)
- Database: MariaDB / MySQL (Structured Data)
- Frontend: Vanilla CSS3, JavaScript (ES6+), SweetAlert2
- Icons: Boxicons Framework
- Server: Optimized for LAMP/LEMP stacks
-
Clone the Project:
git clone https://github.com/your-repo/jimma-coffee-express.git
-
Server Setup:
- Move the contents of
store/to your web server's document root (e.g.,/var/www/html/orhtdocs/).
- Move the contents of
-
Database Migration:
- Create a database named
coffeein phpMyAdmin or via CLI. - Import
coffee.sqlinto thecoffeedatabase.
- Create a database named
-
Environment Configuration:
- Modify
store/components/config.phpwith your production database credentials.
- Modify
For detailed production deployment instructions (including SSL setup and server hardening), please refer to the Enterprise Deployment Guide.
Development is held to high architectural standards. Please ensure all new features follow the established PDO pattern and include necessary documentation.
This project is licensed under the MIT License - see the LICENSE file for details.
