Kanap

🛋️ Kanap - Premium E-commerce

Modern e-commerce platform for furniture and sofas with complete mobile optimization

Kanap Preview Mobile Optimized Responsive

📱 New Mobile Features

Complete Mobile Optimization

🎨 Premium Design

🛒 Advanced Mini-Cart

🚀 Installation & Setup

Prerequisites

Backend Installation

# Clone the repository
git clone [repository-url]
cd P5-Dev-Web-Kanap-master

# Install backend dependencies
cd back
npm install

# Start the server
node server

Server starts on http://localhost:3000

Frontend Launch

# From root directory
cd front

# Open with local server (e.g., Live Server, http-server)
# Or simply open front/html/index.html in browser

📱 Responsive Design

Breakpoints

Mobile Features

🎯 Main Features

Pages

Interactions

🛠️ Technologies Used

Frontend

Backend

📂 Project Structure

P5-Dev-Web-Kanap-master/
├── 📁 back/                 # Backend server
│   ├── controllers/
│   ├── models/
│   └── server.js
├── 📁 front/                # Frontend application
│   ├── 📁 css/
│   │   ├── style.css        # Main styles + mobile
│   │   ├── product.css      # Product page
│   │   ├── cart.css         # Cart page
│   │   └── confirmation.css # Confirmation page
│   ├── 📁 html/
│   │   ├── index.html       # Homepage
│   │   ├── product.html     # Product page
│   │   ├── cart.html        # Cart
│   │   └── confirmation.html# Confirmation
│   ├── 📁 js/
│   │   ├── index.js         # Homepage logic
│   │   ├── product.js       # Product logic
│   │   ├── cart.js          # Cart logic
│   │   ├── confirmation.js  # Confirmation logic
│   │   └── miniCart.js      # Premium mini-cart
│   └── 📁 images/           # Visual assets
└── README.md

🎨 Style Guide

Colors

--primary-color: #3498db      /* Primary blue */
--secondary-color: #9b59b6    /* Secondary purple */
--accent-color: #059669       /* Accent green (prices) */
--dark-gray: #2c3e50         /* Main text */
--light-gray: #ecf0f1        /* Backgrounds */

Typography

Animations

📱 Mobile Optimizations

Performance

Mobile UX

Accessibility

🔧 API Endpoints

// Get all products
GET http://localhost:3000/api/products

// Get specific product
GET http://localhost:3000/api/products/:id

// Place an order
POST http://localhost:3000/api/products/order

🚀 Deployment

Production

  1. Build: Minify CSS/JS if needed
  2. Assets: Optimize images
  3. Server: Configure environment variables
  4. HTTPS: SSL certificate required

Environment Variables

PORT=3000                    # Server port
NODE_ENV=production         # Environment
API_URL=http://localhost:3000 # API URL

📊 Performance

Lighthouse Metrics

Core Web Vitals

🤝 Contributing

  1. Fork the project
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

👨‍💻 Author

OpenClassrooms - Project 5 of the Web Developer path


🎯 Future Improvements


🚀 Kanap - Next-generation e-commerce!