Skip to content

SrashtiChauhan/Buildora-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Buildora AI β€” AI-Powered Website Builder


🌐 Live Demo https://buildora-ai-five.vercel.app


πŸ“Œ Overview

Buildora AI is a full-stack SaaS platform that allows users to generate, edit, and deploy complete websites using AI.

It simulates a real-world production system with:

  • Authentication
  • Credit-based usage
  • Payment integration
  • Public deployment

🎯 Problem Statement

Traditional website development requires time, technical expertise, and effort.

Buildora AI solves this by enabling users to generate production-ready websites instantly using AI, reducing development time from hours to seconds.


✨ Key Features

  • 🧠 AI-powered website generation (HTML, CSS, JS)
  • 🎯 Credit-based system (10 credits generate / 5 modify)
  • ✏️ Modify websites using AI prompts
  • πŸš€ One-click deployment with shareable URL
  • 🌍 Public website viewing via /site/:slug
  • πŸ” Google Authentication (Firebase + JWT)
  • πŸ’³ Razorpay payment integration

πŸ”„ Application Flow

1. User visits frontend (React - Vercel)

2. Authentication:
   β†’ Login via Firebase (Google)
   β†’ Backend generates JWT
   β†’ Stored in HTTP-only cookies

3. Website Generation:
   β†’ User enters prompt
   β†’ Frontend β†’ Backend (/generate)
   β†’ Backend β†’ OpenRouter API
   β†’ AI returns HTML
   β†’ Stored in MongoDB

4. Dashboard:
   β†’ Fetch user websites (protected API)

5. Deployment:
   β†’ Backend generates unique slug
   β†’ Public URL created:
     /site/:slug

6. Public Access:
   β†’ WebsiteViewer loads
   β†’ Calls /getbyslug (NO auth)
   β†’ Renders HTML using iframe

7. Payments:
   β†’ Razorpay integration
   β†’ Credits updated in database

βš™οΈ Tech Stack

🧠 Frontend

  • React.js (Vite)
  • Redux Toolkit
  • Tailwind CSS
  • Axios

πŸ”₯ Backend

  • Node.js
  • Express.js
  • MongoDB (Mongoose)
  • JWT Authentication

πŸ€– AI Integration

  • OpenRouter API (DeepSeek Model)

πŸ” Authentication

  • Firebase Google Auth

πŸ’³ Payments

  • Razorpay

☁️ Deployment

  • Vercel (Frontend)
  • Render (Backend)
  • MongoDB Atlas

πŸ“‚ Project Structure

Buildora-AI/
β”‚
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ controllers/
β”‚   β”œβ”€β”€ database/
β”‚   β”œβ”€β”€ middlewares/
β”‚   β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ index.js
β”‚   └── .env
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ layout/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”‚   β”œβ”€β”€ Dashboard.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Generate.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ WebsiteEditor.jsx
β”‚   β”‚   β”‚   └── WebsiteViewer.jsx
β”‚   β”‚   β”œβ”€β”€ redux/
β”‚   β”‚   β”œβ”€β”€ config.js
β”‚   β”‚   β”œβ”€β”€ firebase.js
β”‚   β”‚   β”œβ”€β”€ App.jsx
β”‚   β”‚   └── main.jsx
β”‚   β”œβ”€β”€ index.html
β”‚   └── .env
β”‚
β”œβ”€β”€ screenshots/
β”‚   β”œβ”€β”€ homepage.png
β”‚   β”œβ”€β”€ dashboard.png
β”‚   └── preview.png
β”‚
└── README.md

πŸ“Έ Screenshots

🏠 Homepage

Homepage

πŸ“Š Dashboard

Dashboard

🌍 Generated Website Preview

Preview


⚑ Getting Started

1️⃣ Clone Repository

git clone https://github.com/your-username/buildora-ai.git
cd buildora-ai

2️⃣ Setup Backend

cd backend
npm install
npm run dev

Create .env:

PORT=8000
MONGO_URI=your_mongodb_uri
SECRET_KEY=your_secret_key
OPENROUTER_API_KEY=your_api_key
FRONTEND_URL=http://localhost:5173
RAZORPAY_KEY_ID=your_key
RAZORPAY_SECRET=your_secret

3️⃣ Setup Frontend

cd frontend
npm install
npm run dev

Create .env:

VITE_SERVER_URL=http://localhost:8000
VITE_FIREBASE_API_KEY=your_key
VITE_RAZORPAY_KEY_ID=your_key

πŸ” Environment Variables (Production)

Backend (Render)

  • MONGO_URI
  • SECRET_KEY
  • OPENROUTER_API_KEY
  • FRONTEND_URL
  • RAZORPAY_KEY_ID
  • RAZORPAY_SECRET

Frontend (Vercel)

  • VITE_SERVER_URL
  • VITE_FIREBASE_API_KEY
  • VITE_RAZORPAY_KEY_ID

πŸ§ͺ Test Credentials (Razorpay)

Card: 4111 1111 1111 1111
Expiry: Any future date
CVV: 123
OTP: 123456

🚧 Known Issues

  • Ad blockers may block Razorpay logs
  • Firebase requires authorized domains

πŸ“ˆ Future Improvements

  • Custom domain deployment
  • Drag & drop editor
  • Templates marketplace
  • Team collaboration

🀝 Contributing

Contributions are welcome! πŸŽ‰

If you'd like to improve this project, feel free to:

  • ⭐ Star the repository
  • πŸ› Report bugs by opening an issue
  • πŸ’‘ Suggest new features or improvements
  • πŸ”§ Submit pull requests

πŸ›  How to Contribute

  1. Fork the repository

  2. Create a new branch

    git checkout -b feature/your-feature-name
  3. Make your changes

  4. Commit your changes

    git commit -m "Added new feature"
  5. Push to your branch

    git push origin feature/your-feature-name
  6. Open a Pull Request πŸš€


πŸ‘©β€πŸ’» Authors


⭐ Show Your Support

If you like this project:

⭐ Star the repo 🍴 Fork it πŸš€ Share it


About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages