A modern React application that provides a user interface for generating code using AI. The application features real-time code generation, live preview, and file management capabilities.
- 🚀 Real-time code generation with live status updates
- 👁️ Live preview of generated code
- 📁 File tree visualization
- 💻 Syntax-highlighted code preview
- 📦 Code download functionality
- 🎨 Modern, responsive UI with Tailwind CSS
- 🔄 Server-sent events (SSE) for real-time updates
- React 18
- TypeScript
- Vite
- Tailwind CSS
- Lucide React Icons
- Node.js (v16 or higher)
- npm or yarn
- Clone the repository:
git clone <repository-url>
cd code-generation-ui- Install dependencies:
npm install
# or
yarn- Set up environment variables:
- Copy
.env.developmentfor local development - Copy
.env.productionfor production deployment - Update the API URLs as needed
- Copy
Run the development server:
npm run dev
# or
yarn devThe application will be available at http://localhost:5173
Build the application:
npm run build
# or
yarn buildVITE_API_URL: The base URL for the code generation API- Development:
http://localhost:8000 - Production:
https://api-autogen-production.up.railway.app
- Development:
├── src/
│ ├── components/ # React components
│ │ ├── CodePreview.tsx
│ │ ├── Preview.tsx
│ │ └── ...
│ ├── services/ # API services
│ │ └── api.ts
│ ├── styles/ # CSS styles
│ ├── config/ # Configuration files
│ │ └── env.ts
│ ├── App.tsx
│ └── main.tsx
├── public/ # Static assets
├── .env.development # Development environment variables
├── .env.production # Production environment variables
└── package.json
- Real-time code generation with progress updates
- Support for multiple file types
- Error handling and validation
- Live preview of generated code
- Support for React components
- CSS module support
- Error boundary for safe rendering
- Tree view of generated files
- File content preview
- Download functionality for generated code
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details