Skip to content

Mahdi-abd-rahmen-Madi/coco-tails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Coco Tails - Premium Healthy Cocktails Website

πŸƒ Revolutionizing the cocktail industry with wellness-focused, natural ingredients and mindful drinking experiences.

Project Overview

Coco Tails is a premium healthy cocktails service that combines luxurious design with wellness-first principles. Our platform offers:

  • Interactive Cocktail Builder with health metrics tracking
  • Premium Ingredient Glossary with nutritional benefits
  • Virtual Mixology Classes with world-class experts
  • Subscription Service for curated wellness ingredients
  • Health-Conscious Community for mindful drinking enthusiasts

🎨 Brand Identity

  • Voice: Sophisticated, health-conscious, celebratory, knowledgeable
  • Personality: Premium wellness brand meets craft cocktail expertise
  • Values: Health-first, sustainability, quality ingredients, mindful consumption
  • Target Audience: Health-conscious millennials and Gen-Z, wellness enthusiasts, premium cocktail lovers

πŸ›  Technology Stack

Frontend (React + Vite)

  • Framework: React 18+ with Vite for fast development
  • Styling: Tailwind CSS with custom wellness-inspired color palette
  • Animations: Framer Motion for smooth, performant animations
  • State Management: Zustand for global state
  • HTTP Client: Axios for API communication
  • Routing: React Router for SPA navigation

Backend (Flask)

  • Framework: Flask with Flask-RESTful for API endpoints
  • Database: SQLAlchemy ORM with SQLite (dev) / PostgreSQL (prod)
  • Authentication: Flask-JWT-Extended for user authentication
  • API Documentation: Flask-RESTX with Swagger UI
  • CORS: Flask-CORS for cross-origin requests
  • Validation: Marshmallow for request/response serialization

πŸš€ Quick Start

Vercel Deployment

SOBRE is configured for easy deployment on Vercel with the following setup:

  • Frontend: React + Vite application
  • Backend: Python Flask API
  • Automatic routing between frontend and backend

Deployment Steps:

  1. Prerequisites:

    • Node.js 16+ and npm
    • Python 3.9+
    • Vercel CLI (npm install -g vercel)
  2. Environment Variables: Create a .env file in the root directory with the following variables:

    # Frontend
    VITE_API_URL=/api
    
    # Backend
    FLASK_ENV=production
    DATABASE_URL=your_database_url
    SECRET_KEY=your_secret_key
    
  3. Deployment Options:

    Option A: Using Vercel Dashboard

    1. Push your code to a GitHub, GitLab, or Bitbucket repository
    2. Sign in to Vercel
    3. Click "Add New..." β†’ "Project"
    4. Import your repository
    5. Configure the project:
      • Framework Preset: Other (Custom)
      • Build Command: node vercel-build.js
      • Output Directory: .vercel/output/static
      • Install Command: npm install
    6. Add the environment variables from your .env file
    7. Click "Deploy"

    Option B: Using Vercel CLI

    # Install Vercel CLI if not already installed
    npm install -g vercel
    
    # Login to Vercel
    vercel login
    
    # Deploy
    vercel --prod
  4. Post-Deployment:

    • Set up a custom domain in the Vercel dashboard
    • Configure environment variables for production
    • Enable automatic deployments for your main branch

For more information, refer to Vercel's documentation.


πŸš€ Quick Start

Prerequisites

  • Node.js 16+ and npm
  • Python 3.8+
  • Git

Frontend Setup

# Navigate to frontend directory
cd frontend

# Install dependencies
npm install

# Start development server
npm run dev

The frontend will be available at http://localhost:3000

Backend Setup

# Navigate to backend directory
cd backend

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Set up environment variables
cp .env.example .env
# Edit .env with your configuration

# Initialize database
flask init-db

# Seed with sample data
flask seed-db

# Start development server
python app.py

The backend API will be available at http://localhost:5000 API documentation at http://localhost:5000/api/docs/

πŸ“ Project Structure

coco-tails/
β”œβ”€β”€ frontend/                 # React + Vite frontend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/      # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ pages/          # Page components
β”‚   β”‚   β”œβ”€β”€ styles/         # Global styles and Tailwind config
β”‚   β”‚   └── assets/         # Images, icons, videos
β”‚   β”œβ”€β”€ public/             # Static assets
β”‚   └── package.json        # Frontend dependencies
β”‚
β”œβ”€β”€ backend/                 # Flask backend
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ models/         # SQLAlchemy models
β”‚   β”‚   β”œβ”€β”€ routes/         # API route handlers
β”‚   β”‚   └── __init__.py     # Flask app factory
β”‚   β”œβ”€β”€ requirements.txt    # Python dependencies
β”‚   β”œβ”€β”€ config.py           # Configuration settings
β”‚   └── app.py              # Main application entry point
β”‚
└── README.md              # Project documentation

🎯 Key Features

✨ Hero Section with Animations

  • Animated liquid effects simulating cocktail mixing
  • Interactive ingredient particles floating across screen
  • Gradient backgrounds shifting between wellness colors
  • Smooth scroll-triggered animations for premium feel
  • Mouse-following interactive elements

🍹 Core Functionality

  • User Authentication with JWT tokens
  • Cocktail Database with detailed nutritional information
  • Ingredient Glossary with health benefits and sourcing
  • Virtual Classes booking and management system
  • Subscription Plans with different tiers
  • User Profiles with preferences and favorites

🎨 Design System

  • Color Palette: Vibrant greens, sophisticated golds, deep purples
  • Typography: Modern clean fonts with elegant serif accents
  • Components: Premium cards, glass morphism effects, gradient buttons
  • Animations: Floating particles, liquid blobs, smooth transitions

πŸ”§ API Endpoints

Authentication

  • POST /api/auth/register - User registration
  • POST /api/auth/login - User login
  • POST /api/auth/refresh - Refresh access token
  • GET /api/auth/me - Get current user profile

Cocktails

  • GET /api/cocktails/ - List cocktails with filtering
  • GET /api/cocktails/{id} - Get cocktail details
  • GET /api/cocktails/featured - Get featured cocktails
  • POST /api/cocktails/{id}/reviews - Create cocktail review
  • POST /api/cocktails/{id}/favorite - Toggle favorite

Ingredients

  • GET /api/ingredients/ - List ingredients
  • GET /api/ingredients/{id} - Get ingredient details
  • GET /api/ingredients/categories - Get categories

Virtual Classes

  • GET /api/classes/ - List upcoming classes
  • GET /api/classes/{id} - Get class details
  • POST /api/classes/{id}/book - Book a class
  • GET /api/classes/my-bookings - Get user bookings

Subscriptions

  • GET /api/subscriptions/ - Get user subscriptions
  • GET /api/subscriptions/plans - Get available plans

Users

  • GET /api/users/profile - Get user profile
  • PUT /api/users/profile - Update user profile
  • GET /api/users/favorites - Get favorite cocktails
  • GET /api/users/dashboard - Get dashboard data

🌟 Premium Features

Health-First Approach

  • Detailed nutritional information for every cocktail
  • Health benefits tracking and recommendations
  • Dietary preference filtering (vegan, keto, gluten-free, etc.)
  • Wellness category organization (detox, immunity, energy, etc.)

Subscription Tiers

  1. Wellness Explorer ($29.99/month)

    • 3 premium ingredient deliveries
    • 5 exclusive recipes
    • Basic nutritional guidance
  2. Mixology Master ($59.99/month)

    • 6 premium ingredient deliveries
    • Unlimited recipes
    • 2 virtual classes per month
    • Personal nutrition consultation
  3. Wellness Connoisseur ($99.99/month)

    • Unlimited ingredient deliveries
    • All premium content
    • Unlimited virtual classes
    • Personal mixologist consultation

πŸŽ“ Virtual Mixology Classes

  • Live interactive sessions with expert mixologists
  • Beginner to advanced difficulty levels
  • Ingredient education and health benefits
  • Recipe customization based on dietary needs
  • Recording access for premium subscribers

πŸ”’ Security Features

  • JWT-based authentication with refresh tokens
  • Password hashing with bcrypt
  • Input validation and sanitization
  • CORS configuration for secure API access
  • Environment-based configuration management

πŸ“± Responsive Design

  • Mobile-first responsive design
  • Optimized for tablets and desktop
  • Touch-friendly interactions
  • Fast loading with optimized animations
  • Accessible design following WCAG guidelines

πŸš€ Deployment

Frontend Deployment

cd frontend
npm run build
# Deploy dist/ folder to your hosting service

Backend Deployment

cd backend
# Set FLASK_CONFIG=production
# Configure production database
# Deploy using gunicorn or similar WSGI server
gunicorn -w 4 -b 0.0.0.0:5000 app:app

🀝 Contributing

  1. Fork the repository
  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.

πŸ™ Acknowledgments

  • Design inspiration from premium wellness brands
  • Health and nutrition data from certified sources
  • Cocktail recipes developed by professional mixologists
  • Community feedback from wellness enthusiasts

Built with ❀️ for the health-conscious cocktail community

About

Buissness website for Local french Healthy cocktails (Bordeaux)

Resources

License

Stars

Watchers

Forks