A comprehensive, modern online bookstore web application with an elegant user interface and powerful admin management system. BookHaven provides customers with a seamless book shopping experience while offering administrators complete control over inventory, orders, and customer management.
- Modern Book Browsing: Beautiful, responsive book catalog with advanced filtering and search
- User Authentication: Secure registration and login system with session management
- Smart Shopping Cart: Interactive cart with real-time updates and quantity management
- Streamlined Checkout: Intuitive checkout process with order confirmation
- Order Tracking: Comprehensive order history and status tracking
- Contact System: Direct communication channel with customer support
- Responsive Design: Optimized for desktop, tablet, and mobile devices
- Dashboard Analytics: Comprehensive overview with statistics and quick actions
- Inventory Management: Complete CRUD operations for book catalog with image uploads
- Order Processing: Advanced order management with status updates and customer details
- User Administration: Full user account management and monitoring
- Message Center: Customer inquiry management with direct email response capabilities
- Product Categories: Organized book categorization system with detailed descriptions
- Design System: Custom Tailwind CSS implementation with professional color palette
- Responsive Layout: Mobile-first design approach with adaptive layouts
- Interactive Elements: Hover effects, smooth transitions, and micro-interactions
- Primary: Professional blue gradient (
#0ea5e9to#0369a1) - Sage: Natural green tones (
#647064to#2e322e) - Cream: Warm neutrals (
#fefcf8to#955d3e) - Accent: Strategic red highlights for important actions
- Framework: Tailwind CSS for utility-first styling
- JavaScript: Vanilla JS with modern ES6+ features
- Icons: Font Awesome 6.0 for consistent iconography
- Typography: Google Fonts (Playfair Display + Inter)
- Animations: CSS transitions and transform animations
- Language: PHP 8+ with modern practices
- Database: MySQL with prepared statements for security
- Session Management: Secure PHP sessions with proper validation
- Configuration: Environment-based configuration with
.envfile support - File Handling: Image upload and management system
- Security: SQL injection prevention, XSS protection, CSRF mitigation
- Users: Comprehensive user management with role-based access
- Products: Rich product data with categories, descriptions, and stock management
- Orders: Complete order lifecycle tracking
- Cart: Session-based shopping cart functionality
- Messages: Customer communication system
- Homepage (
index.php): Featured products with modern card layouts - Shop (
shop.php): Complete product catalog with filtering - Product Details: Individual product pages with detailed information
- Shopping Cart (
cart.php): Interactive cart management - Checkout (
checkout.php): Streamlined purchase process - User Profile (
profile.php): Account management with conditional layouts - About Us (
about.php): Company information and team details - Contact (
contact.php): Customer inquiry form
- Dashboard (
admin_page.php): Analytics and quick actions overview - Product Management (
admin_products.php): Inventory CRUD operations - Order Management (
admin_orders.php): Order processing and status updates - User Management (
admin_users.php): Customer account administration - Message Center (
admin_contacts.php): Customer communication hub
- Prepared Statements: All database queries use prepared statements
- Session Security: Proper session handling with validation
- Input Sanitization: HTML escaping and data validation
- Access Control: Role-based permissions for admin functions
- File Upload Security: Secure image handling with validation
- Environment Variables: Secure configuration management with sensitive data isolation
- PHP 8.0 or higher
- MySQL 5.7 or higher
- Apache/Nginx web server
- Modern web browser with JavaScript enabled
- Environment file configured (
.env)
-
Clone the Repository
git clone https://github.com/param-chandarana/bookstore.git cd bookstore -
Environment Configuration
cp .env.example .env # Edit .env with your database credentials nano .env -
Database Setup
-- Create database CREATE DATABASE bookstore; -- Import the schema mysql -u username -p bookstore < shop_db.sql
-
Web Server Setup
- Place files in your web server directory
- Ensure proper permissions for uploaded images directory
-
Admin Account
- Register a new account
- Select type 'admin' while registering
- Or use existing admin credentials if available
- Component-Based Design: Reusable header/footer components
- Responsive Layouts: Mobile-first approach with progressive enhancement
- Performance Optimized: Efficient database queries and optimized assets
- Accessibility: Semantic HTML and keyboard navigation support
- Real-Time Updates: Dynamic cart updates and live statistics
- Image Management: Secure file upload with validation
- Email Integration: Direct customer communication capabilities
- Analytics Dashboard: Comprehensive business insights
- Search Functionality: Advanced product search and filtering
- Modal Dialogs: Elegant confirmation and form modals
- Loading States: Smooth transitions and feedback
- Error Handling: User-friendly error messages and validation
- Success Feedback: Clear confirmation messages and visual cues
BookHaven - Literary Adventures Await 📖✨