Transform your creative ideas into stunning, fully functional websites with the power of AI! Site Builder is an innovative platform that leverages OpenAI's advanced language models to generate complete websites from simple text descriptions.
- 🤖 AI-Powered Generation: Describe your website in plain English and watch it come to life
- 🔄 Real-Time Preview: See your website evolve as you refine your prompts
- 👤 User Authentication: Secure login system with Better Auth
- 📁 Project Management: Organize and version your website projects
- 💬 Conversational AI: Chat with the AI to iteratively improve your website
- 🌐 Community Hub: Share and discover amazing websites created by the community
- 💳 Payment Integration: Seamless Stripe integration for premium features
- 📱 Responsive Design: Mobile-first approach ensures great experience on all devices
- 🎨 Modern UI: Beautiful interface built with React and Tailwind CSS
- React 19 - Modern React with hooks and concurrent features
- TypeScript - Type-safe JavaScript
- Vite - Fast build tool and dev server
- Tailwind CSS - Utility-first CSS framework
- React Router - Client-side routing
- Axios - HTTP client for API calls
- Lucide React - Beautiful icons
- Better Auth UI - Authentication components
- Node.js - JavaScript runtime
- Express - Web framework
- TypeScript - Type-safe server code
- Prisma - Next-generation ORM for PostgreSQL
- PostgreSQL - Robust relational database
- OpenAI API - AI-powered content generation
- Stripe - Payment processing
- Better Auth - Authentication library
- Node.js (v18 or higher)
- PostgreSQL database
- OpenAI API key
- Stripe account (for payments)
-
Clone the repository
git clone https://github.com/yourusername/prompt-to-website.git cd prompt-to-website -
Install dependencies
# Install client dependencies cd client npm install # Install server dependencies cd ../server npm install
-
Set up the database
# Generate Prisma client npx prisma generate # Run database migrations npx prisma migrate dev
-
Configure environment variables
Create
.envfiles in bothclientandserverdirectories:server/.env
DATABASE_URL="postgresql://username:password@localhost:5432/prompt_to_website" OPENAI_API_KEY="your_openai_api_key" STRIPE_SECRET_KEY="your_stripe_secret_key" STRIPE_WEBHOOK_SECRET="your_stripe_webhook_secret" BETTER_AUTH_SECRET="your_better_auth_secret"
client/.env
VITE_API_URL="http://localhost:3001" VITE_STRIPE_PUBLISHABLE_KEY="your_stripe_publishable_key"
-
Start the development servers
# Start the server (from server directory) npm run server # Start the client (from client directory) npm run dev
-
Open your browser
Navigate to
http://localhost:5173to start creating websites!
- Sign Up/Login: Create an account or log in to access the platform
- Create a Project: Click "New Project" and enter a descriptive prompt
- Watch Magic Happen: The AI generates your initial website structure
- Iterate & Refine: Use the chat interface to make improvements
- Preview & Publish: View your website and publish when ready
- Share with Community: Showcase your creations in the community section
prompt-to-website/
├── client/ # React frontend
│ ├── src/
│ │ ├── components/ # Reusable UI components
│ │ ├── pages/ # Application pages
│ │ ├── lib/ # Utilities and configurations
│ │ └── types/ # TypeScript type definitions
│ ├── public/ # Static assets
│ └── package.json
├── server/ # Express backend
│ ├── controllers/ # Route controllers
│ ├── lib/ # Database and utilities
│ ├── middlewares/ # Express middlewares
│ ├── routes/ # API routes
│ ├── prisma/ # Database schema and migrations
│ └── package.json
└── README.md
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add 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.
- OpenAI for their incredible language models
- Prisma for the amazing ORM
- Tailwind CSS for the utility-first CSS framework
- React for the powerful frontend library
Made with ❤️ and lots of ☕ by Paras Goyal