A CrewAI-powered website builder that uses a team of AI agents (Product Manager, UI/UX Designer, and Software Engineer) to generate React applications with Tailwind CSS.
# Complete setup and start development
make setup
make devThat's it! The backend will be available at http://localhost:8000 and the frontend at http://localhost:5173.
- Python 3.10+
- Node.js 18+
- Poetry (for Python dependency management)
- An Anthropic API key
# Install all dependencies
make install
# Create .env file and complete setup
make setup
# Start development servers
make dev-
Install backend dependencies:
poetry install
-
Install frontend dependencies:
cd frontend npm install -
Set up environment variables:
cp .env.example .env # Edit .env and add your ANTHROPIC_API_KEY
Add your Anthropic API key to the .env file:
ANTHROPIC_API_KEY=your_anthropic_api_key_here# Start both backend and frontend
make dev
# Start only backend
make backend
# Start only frontend
make frontend# Run all tests
make test
# Lint code
make lint
# Format code
make format# Build for production
make build
# Start production server
make startai-website-generator/
βββ backend/ # FastAPI backend
β βββ agents/ # CrewAI agents
β β βββ product_manager.py
β β βββ ui_designer.py
β β βββ software_engineer.py
β βββ api/ # API routes
β βββ crew/ # CrewAI crew configuration
β βββ mcp/ # MCP server integrations
β βββ utils/ # Utility functions
βββ frontend/ # React frontend
β βββ src/
β β βββ components/ # React components
β β βββ lib/ # Utilities
β βββ public/
βββ generated/ # Generated websites
βββ data/ # Project data storage
βββ memory-bank/ # AI memory and documentation
βββ Makefile # Development commands
- Product Manager Agent: Analyzes requirements and creates project specifications
- UI/UX Designer Agent: Creates design systems and component specifications
- Software Engineer Agent: Implements the React application with TypeScript and Tailwind CSS
The agents work together in sequence to deliver a complete, production-ready website.
GET /- API informationGET /health- Health checkPOST /api/v1/generate- Start website generationGET /api/v1/projects/{id}/status- Get project statusGET /api/v1/projects- List all projectsGET /api/v1/projects/{id}/files- Get generated files
Run make help to see all available commands:
make setup- Complete project setupmake install- Install all dependencies
make dev- Start both serversmake backend- Start FastAPI servermake frontend- Start React server
make test- Run all testsmake lint- Lint codemake format- Format code
make build- Build for productionmake start- Start production server
make clean- Clean build artifactsmake reset- Reset project statemake logs- Show application logsmake health- Check application healthmake status- Show project status
-
Start development:
make dev
-
Make changes to code
-
Test and lint:
make quick-test
-
Generate a website:
- Open
http://localhost:5173 - Enter website description and requirements
- Watch the AI agents work together
- Open
# Prepare for deployment
make deploy-prep
# Build production assets
make build
# Start production server
make startThe project includes comprehensive testing:
- Backend: pytest with async support
- Frontend: Vitest with React Testing Library
- Linting: flake8, mypy, ESLint
- Formatting: black, isort, Prettier
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests:
make quick-test - Submit a pull request
This project is licensed under the MIT License.
Backend won't start:
- Check that your
ANTHROPIC_API_KEYis set in.env - Ensure Poetry dependencies are installed:
make install
Frontend won't start:
- Check Node.js version (18+ required)
- Clear cache:
make clean && make install
Generation fails:
- Verify API key is valid
- Check backend logs:
make logs - Ensure all agents are properly configured
- Check the logs:
make logs - Verify health:
make health - Reset project:
make reset
For more help, check the memory-bank documentation or create an issue.