|
| 1 | +# Snap2Slides Pro |
| 2 | + |
| 3 | +**Snap2Slides Pro** is a cutting-edge AI-powered presentation generator that transforms images, PDFs, and documents into professional presentation slides. Built with Next.js 14 and powered by Google's Gemini Vision API, it offers a seamless, mobile-responsive experience for creating presentations from any visual content. |
| 4 | + |
| 5 | +    |
| 6 | + |
| 7 | +## Features |
| 8 | + |
| 9 | +- **AI Image Analysis**: Advanced computer vision using Google Gemini AI |
| 10 | +- **Smart Content Generation**: Automatically creates structured presentation content |
| 11 | +- **Instant PowerPoint Export**: Download professional .pptx files ready for use |
| 12 | +- **Clean, Professional Interface**: Apple-level design without unnecessary animations |
| 13 | +- **Real-time Progress Tracking**: Visual feedback during processing |
| 14 | + |
| 15 | +## Setup |
| 16 | + |
| 17 | +1. **Install Dependencies** |
| 18 | + ```bash |
| 19 | + npm install |
| 20 | + ``` |
| 21 | + |
| 22 | +2. **Configure Gemini API** |
| 23 | + - Get your API key from [Google AI Studio](https://makersuite.google.com/app/apikey) |
| 24 | + - Add it to `.env.local`: |
| 25 | + ``` |
| 26 | + GEMINI_API_KEY=your_actual_api_key_here |
| 27 | + ``` |
| 28 | + |
| 29 | +3. **Run Development Server** |
| 30 | + ```bash |
| 31 | + npm run dev |
| 32 | + ``` |
| 33 | + |
| 34 | +4. **Open in Browser** |
| 35 | + - Navigate to `http://localhost:3000` (or the port shown in terminal) |
| 36 | + |
| 37 | +## Usage |
| 38 | + |
| 39 | +1. **Upload Image**: Drag and drop or click to select an image file (JPG, PNG, WebP up to 10MB) |
| 40 | +2. **Generate Slides**: Click "Generate Slides" to process with AI |
| 41 | +3. **Download Result**: PowerPoint file will automatically download when ready |
| 42 | + |
| 43 | +## Technical Stack |
| 44 | + |
| 45 | +- **Next.js 14**: React framework with App Router |
| 46 | +- **TypeScript**: Type-safe development |
| 47 | +- **Tailwind CSS**: Utility-first styling |
| 48 | +- **Google Gemini AI**: Advanced image analysis and content generation |
| 49 | +- **PptxGenJS**: PowerPoint file generation |
| 50 | + |
| 51 | +## API Routes |
| 52 | + |
| 53 | +- `POST /api/gemini-vision`: Process images with AI |
| 54 | +- `POST /api/generate-pptx-slides`: Create PowerPoint presentations |
| 55 | + |
| 56 | +## File Structure |
| 57 | + |
| 58 | +``` |
| 59 | +app/ |
| 60 | +├── api/ |
| 61 | +│ ├── gemini-vision/route.ts # AI image processing |
| 62 | +│ └── generate-pptx-slides/route.ts # PowerPoint generation |
| 63 | +├── globals.css # Clean, professional styling |
| 64 | +├── layout.tsx # Root layout |
| 65 | +└── page.tsx # Main application interface |
| 66 | +``` |
| 67 | + |
| 68 | +## Environment Variables |
| 69 | + |
| 70 | +```bash |
| 71 | +GEMINI_API_KEY=your_gemini_api_key_here |
| 72 | +``` |
| 73 | + |
| 74 | +## Production Deployment |
| 75 | + |
| 76 | +1. Build the application: |
| 77 | + ```bash |
| 78 | + npm run build |
| 79 | + ``` |
| 80 | + |
| 81 | +2. Start production server: |
| 82 | + ```bash |
| 83 | + npm start |
| 84 | + ``` |
| 85 | + |
| 86 | +Make sure to set the `GEMINI_API_KEY` environment variable in your production environment. |
| 87 | +- **TypeScript**: Full type safety and excellent developer experience |
| 88 | + |
| 89 | +## 🛠️ Tech Stack |
| 90 | + |
| 91 | +- **Next.js 14** - React framework with App Router |
| 92 | +- **TypeScript** - Type-safe development |
| 93 | +- **Tailwind CSS** - Utility-first styling |
| 94 | +- **Google Gemini AI** - Image analysis and content generation |
| 95 | +- **MongoDB** - Database for storing presentations |
| 96 | +- **Framer Motion** - Smooth animations |
| 97 | + |
| 98 | +## 🎯 Quick Start |
| 99 | + |
| 100 | +1. **Install Dependencies** |
| 101 | + ```bash |
| 102 | + npm install |
| 103 | + ``` |
| 104 | + |
| 105 | +2. **Environment Setup** |
| 106 | + ```bash |
| 107 | + cp .env.local.example .env.local |
| 108 | + # Add your API keys |
| 109 | + ``` |
| 110 | + |
| 111 | +3. **Run Development Server** |
| 112 | + ```bash |
| 113 | + npm run dev |
| 114 | + ``` |
| 115 | + |
| 116 | +4. **Open Browser** |
| 117 | + Visit [http://localhost:3000](http://localhost:3000) |
| 118 | + |
| 119 | +## 📁 Project Structure |
| 120 | + |
| 121 | +``` |
| 122 | +├── app/ |
| 123 | +│ ├── api/ # API routes |
| 124 | +│ ├── components/ # Reusable components |
| 125 | +│ ├── globals.css # Global styles |
| 126 | +│ ├── layout.tsx # Root layout |
| 127 | +│ └── page.tsx # Homepage |
| 128 | +├── public/ # Static assets |
| 129 | +├── next.config.js # Next.js configuration |
| 130 | +└── tailwind.config.js # Tailwind configuration |
| 131 | +``` |
| 132 | + |
| 133 | +## 🔧 Development |
| 134 | + |
| 135 | +- `npm run dev` - Start development server |
| 136 | +- `npm run build` - Build for production |
| 137 | +- `npm run start` - Start production server |
| 138 | +- `npm run lint` - Run ESLint |
| 139 | +- `npm run type-check` - TypeScript checking |
| 140 | + |
| 141 | +## 🎨 Features in Detail |
| 142 | + |
| 143 | +### Image Upload & Analysis |
| 144 | +- Drag & drop interface |
| 145 | +- Multiple file support |
| 146 | +- AI-powered content extraction |
| 147 | +- Smart title generation |
| 148 | + |
| 149 | +### Slide Generation |
| 150 | +- Professional templates |
| 151 | +- Automatic layout optimization |
| 152 | +- Content suggestions |
| 153 | +- Export capabilities |
| 154 | + |
| 155 | +## 🚀 Deployment |
| 156 | + |
| 157 | +Ready to deploy on Vercel, Netlify, or any Node.js hosting platform. |
| 158 | + |
| 159 | +## 📝 License |
| 160 | + |
| 161 | +MIT License - feel free to use for personal and commercial projects. |
| 162 | + |
| 163 | +--- |
| 164 | + |
| 165 | +**Built with ❤️ for the future of presentations** |
0 commit comments