Frontend application cho Manga Generator - một ứng dụng tạo truyện tranh bằng AI.
- Framework: Next.js 14
- UI Library: React + Tailwind CSS + Shadcn/ui
- State Management: Zustand
- Authentication: NextAuth.js
- Animations: Framer Motion + GSAP
- Type Safety: TypeScript
app/
├── api/ # API routes
├── auth/ # Authentication pages
├── community/ # Community features
├── profile/ # User profile
├── studio/ # Main manga creation interface
├── landing-v2/ # Landing page
├── globals.css # Global styles
├── layout.tsx # Root layout
└── page.tsx # Home page
src/
├── components/ # Reusable UI components
│ ├── app/ # App-specific components
│ ├── auth/ # Authentication components
│ ├── landing/ # Landing page components
│ ├── studio/ # Studio components
│ └── ui/ # Base UI components (Shadcn)
├── hooks/ # Custom React hooks
└── lib/ # Utilities and configurations
├── api/ # API client
├── constants/ # Application constants
├── services/ # Service layers
├── stores/ # Zustand stores
├── types/ # TypeScript types
├── utils/ # Helper utilities
└── validations/ # Form validations
- Clone repository:
git clone <repo-url>
cd manga-generator- Cài đặt dependencies:
pnpm install- Setup environment variables:
cp .env.example .env.local
# Cập nhật các biến môi trường trong file .env.local- Start development server:
pnpm devỨng dụng sẽ chạy tại http://localhost:3000
pnpm dev- Chạy development serverpnpm build- Build productionpnpm start- Chạy production serverpnpm lint- Lint code
- Hero section với animations
- Feature showcase
- Pricing plans
- CTA sections
- Manga creation workspace
- Panel management
- AI-powered content generation
- Real-time preview
- Export functionality
- Authentication (Login/Register)
- User profiles
- Project management
- Settings dashboard
- User galleries
- Project sharing
- Social features
Tham khảo file .env.example để xem các biến môi trường cần thiết:
NEXT_PUBLIC_API_BASE_URL- Backend API URLNEXT_PUBLIC_APP_URL- Frontend app URLNEXTAUTH_SECRET- NextAuth secretNEXT_PUBLIC_GEMINI_API_KEY- Gemini API keyNEXT_PUBLIC_CLOUDINARY_CLOUD_NAME- Cloudinary config
Ứng dụng được thiết kế responsive cho:
- Desktop (1200px+)
- Tablet (768px - 1199px)
- Mobile (< 768px)
Sử dụng Shadcn/ui components với custom theming:
- Dark/Light mode support
- Consistent design system
- Accessible components
- Custom animations
Sử dụng Zustand cho state management:
- User state
- Studio state
- UI state
- API cache
- Connect repository to Vercel
- Configure environment variables
- Deploy automatically
pnpm build
pnpm start- Fork repository
- Tạo feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Tạo Pull Request
This project is licensed under the MIT License.