Cafora Coffee is a full-stack web-based coffee shop management system designed to streamline product showcasing, customer interaction, and administrative control.
The system is built to provide:
- An intuitive shopping experience for customers.
- A secure management dashboard for administrators.
- Scalable architecture to support future growth (online payments, order tracking, mobile app integration).
This project was developed as part of academic and professional practice, focusing on *modern UI/UX, **security best practices, and *clean code principles.
- 📦 Product Catalog – Browse coffee varieties with names, descriptions, prices, and availability.
- 🔎 Search & Filter (planned) – Find coffee by category, type, or price range.
- 📱 Responsive Design – Works seamlessly on desktop, tablet, and mobile.
- 📝 Contact Form – Customers can reach out for inquiries or feedback.
- 🛠 Admin Authentication – Secure login system with role-based access.
- 📊 Dashboard Overview – Quick stats of stock, issued products, and messages.
- 🧾 Product Management – Add, edit, or delete coffee products.
- 📦 Stock & Issued Tracking – Manage inventory without auto-deducting stock.
- 📬 Message Management – View and delete customer contact messages.
| Layer | Technology Used |
|---|---|
| Frontend | HTML5, CSS3, JavaScript (Vanilla), Google Fonts, Ionicons |
| Backend | PHP (Procedural with PDO for DB interactions) |
| Database | MySQL (Structured schema with relational integrity) |
| Server | Apache (XAMPP/WAMP/LAMP stack) |
cafora-coffee/ │-- admin/ # Admin dashboard & management files │ │-- admin_dashboard.php │ │-- products.php │ │-- messages.php │ │-- assets/ # Images, icons, fonts, and static files │ │-- includes/ # Reusable PHP includes │ │-- auth.php # Authentication & access control │ │-- database_connection.php# Database connection (PDO) │ │-- │ │-- index.php # Homepage │ │-- products.php # Coffee product catalog │ │-- contact.php # Contact form │ │-- assets/sql | # Database scripts │ │-- cafora.sql │ │-- style.css # Global styles │-- README.md # Project documentation
Make sure you have the following installed:
- XAMPP / WAMP / LAMP (Apache + MySQL + PHP 8.x)
- Git
- Clone the repository
git clone https://github.com/keshan-dev/cafora_coffee_php.git
2.Move into your server root directory
For XAMPP: htdocs/ For WAMP: www/
3.Setup the Database
Open phpMyAdmin and create a database called coffee_shop. Import sql/cafora.sql.
5.Start the Application
Start Apache & MySQL in your local server. Visit: http://localhost/cafora-coffee
🔑 Default Admin Credentials
Email: admin@coffee.com Password: 0000
🔑 Default User Credentials
Email: user@coffee.com Password: 0000
⚠ Important: Change the default credentials in the database immediately after installation.
Integrate online payments (Stripe / PayPal).
Build REST API for mobile app integration.