#!/bin/bash

# Shom Food Website - Quick Installation Script
# Run this in terminal to install and start the website

echo "🚀 Shom Food Website - Quick Setup"
echo "=================================="

# Check if Node.js is installed
if ! command -v node &> /dev/null
then
    echo "❌ Node.js is not installed."
    echo "📥 Download from: https://nodejs.org/ (LTS version)"
    exit 1
fi

echo "✅ Node.js version: $(node -v)"
echo "✅ NPM version: $(npm -v)"
echo ""

# Install dependencies
echo "📦 Installing dependencies..."
npm install

echo ""
echo "✨ Setup complete!"
echo ""
echo "🎯 Available commands:"
echo "   npm run dev     → Start development server (http://localhost:3000)"
echo "   npm run build   → Build for production"
echo "   npm start       → Start production server"
echo ""
echo "📖 Next steps:"
echo "   1. Edit lib/constants.js to customize content"
echo "   2. Add your products and translations"
echo "   3. Run: npm run dev"
echo "   4. Visit: http://localhost:3000"
echo ""
echo "💡 For detailed setup: read README.md and SETUP_GUIDE.md"
echo ""
echo "Happy building! 🎉"
