AI eBook Creator is a premium Full-Stack application that leverages cutting-edge Artificial Intelligence to transform ideas into professional-grade eBooks. From outline generation to full-chapter expansion, custom cover management, and multi-format exports, this platform provides a seamless 360-degree workflow for authors and content creators.
- AI Outlining: Automatically generate comprehensive book structures based on a single prompt.
- Chapter Expansion: Deep-dive into topics with AI-powered chapter content generation using Google Gemini & Groq.
- Interactive Markdown Editor: Refine your AI-generated content with a sleek, real-time editor.
- SSLCommerz Payment Gateway: Professional integration for local payments via bKash, Nagad, and Cards.
- Pro Tier Model:
- Free Users: Limited to creating 3 eBooks.
- Pro Users: Unlimited eBook creation and advanced export features.
- Subscription Management: Automated expiry logic and "Pro" badge verification.
- PDF Export: Generate high-fidelity PDF documents with structured headings and page numbers.
- DOCX Export: Fully editable Microsoft Word documents for further manual refinement.
- Sleek Dashboard: Manage multiple eBook projects with ease.
- Secure Authentication: JWT-based login/signup with persistent sessions.
- Responsive Design: Designed for both desktop productivity and mobile updates.
- React 19 & Vite (Next-gen speed)
- Tailwind CSS 4 (Modern logic-driven styling)
- Lucide React (Consistent iconography)
- React Hot Toast (Micro-animations for feedback)
- Node.js & Express.js
- SSLCommerz LTS (v4) (Secure payment integration)
- JWT & Bcrypt.js (Standard authentication & security)
- PDFKit & DOCX.js (Server-side document generation)
- Google Generative AI (Gemini 2.0)
- Groq SDK (Llama 3 support)
- MongoDB & Mongoose (Scalable NoSQL storage)
AI_eBook_Creator/
├── frontend/ # React (Vite) Frontend
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Main route pages (Dashboard, Landing, Editor)
│ │ ├── context/ # Auth & Payment state
│ │ └── utils/ # API configuration (Axios)
│ └── vercel.json # Frontend deployment config
│
└── backend/ # Express.js Backend
├── controllers/ # Logic for AI, Payment, Auth, and Export
├── models/ # Mongoose Data Schemas (User, Book)
├── routes/ # API Endpoint definitions
└── server.js # Entry point & Middleware
- Node.js (v18+)
- MongoDB Atlas Account
- SSLCommerz Sandbox/Live Account
cd backend
npm installCreate a .env file:
PORT=8000
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
GROQ_API_KEY=your_groq_key
SSL_STORE_ID=your_store_id
SSL_STORE_PASSWORD=your_password
IS_SANDBOX=true
SUCCESS_URL=http://localhost:8000/api/payment/success
FRONTEND_URL=http://localhost:5173Run development server: npm run dev
cd frontend
npm install
npm run devFor production, ensure the following environment variables are set in your Vercel Dashboard:
Backend Vars:
SUCCESS_URL:https://your-api.vercel.app/api/payment/successFRONTEND_URL:https://your-frontend.vercel.appIS_SANDBOX:false(once using Live credentials)
Frontend Vars:
VITE_API_BASE_URL:https://your-api.vercel.app/api
Developed with ❤️ by shoriful-dev
