Comic Book Generator - Client
Frontend interface for the Comic Book Generator, built with React and Vite.
๐ ๏ธ Technologies
- React 18
- Vite
- Material-UI (MUI)
- Framer Motion
- React Router
- Context API
๐ Project Structure
src/
โโโ components/ # Reusable components
โ โโโ GameNavigation/ # Game navigation
โ โโโ StoryChoices/ # Choice interface
โ โโโ TalkWithSarah/ # AI Assistant
โโโ contexts/ # React contexts (Game, Sound)
โโโ hooks/ # Custom hooks
โโโ layouts/ # Layout components
โโโ pages/ # Application pages
โโโ utils/ # Utilities and API
๐ฎ Key Features
- Interactive comic book interface
- Choice system (predefined or custom)
- Voice narration with controls
- Sound effects and ambient music
- AI Assistant "Sarah" for help
- Responsive design
๐ Installation
# Install dependencies
yarn install
# Start development server
yarn dev
# Build for production
yarn build
๐ง Configuration
The client requires a running backend server. Configure the API URL in src/utils/api.js
.
๐ Testing
# Run tests
yarn test
# Run tests with coverage
yarn test:coverage
๐จ Style and Linting
The project uses ESLint and Prettier to maintain clean and consistent code.
# Check style
yarn lint
# Auto-fix issues
yarn lint:fix