Skip to content

custmax/custmax-frontend

Repository files navigation

Custmax - AI Code Generation Platform

A modern web application inspired by bolt.new that allows users to create stunning apps and websites by chatting with AI. Built with Next.js 14, TypeScript, and the latest web technologies.

🚀 Features

  • AI-Powered Code Generation: Chat with AI to generate and modify code
  • Real-time Code Editor: Split-screen editor with live preview
  • Project Templates: Pre-built templates for React, Vue, Next.js, and more
  • User Authentication: Secure login and registration system
  • Subscription Management: Stripe-powered payment system
  • Responsive Design: Beautiful UI that works on all devices
  • Dark Mode Support: Toggle between light and dark themes

🛠️ Tech Stack

  • Framework: Next.js 14 with App Router
  • Language: TypeScript
  • State Management: Redux Toolkit
  • Styling: Tailwind CSS + styled-components
  • UI Components: Shadcn UI with Radix UI primitives
  • Payment: Stripe Elements
  • Icons: Lucide React
  • Database: (Ready for integration with PostgreSQL/MongoDB)

🏃‍♂️ Getting Started

Prerequisites

  • Node.js 18+
  • npm, yarn, or pnpm

Installation

  1. Clone the repository:
git clone <repository-url>
cd custmax-website-new
  1. Install dependencies:
npm install
# or
yarn install
# or
pnpm install
  1. Start the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
  1. Open http://localhost:3000 in your browser.

📁 Project Structure

src/
├── app/                    # Next.js App Router pages
│   ├── api/               # API routes
│   ├── editor/            # Code editor page
│   ├── pricing/           # Pricing page
│   └── globals.css        # Global styles
├── components/            # Reusable React components
│   ├── auth/              # Authentication components
│   ├── payment/           # Payment/subscription components
│   └── ui/                # Shadcn UI components
├── store/                 # Redux store and slices
│   └── slices/            # Redux slices
└── lib/                   # Utility functions

🎯 Core Features

AI Chat Interface

  • Real-time conversation with AI assistant
  • Code generation and modification
  • Context-aware responses

Code Editor

  • Syntax highlighting
  • Live preview
  • Multiple layout options (split, editor-only, preview-only)
  • File management system

Project Templates

  • React applications
  • Next.js blogs
  • Vue dashboards
  • Static landing pages

Authentication System

  • Email/password registration
  • OAuth with GitHub and Google
  • token-based session management

Subscription Plans

  • Free tier with basic features
  • Pro plan with unlimited projects
  • Enterprise plan with team features

🔧 Configuration

Environment Variables

Create a .env.local file in the root directory:

# Database
DATABASE_URL="your-database-url"

# Authentication
NEXTAUTH_SECRET="your-secret"
NEXTAUTH_URL="http://localhost:3000"

# OAuth Providers
GITHUB_CLIENT_ID="your-github-client-id"
GITHUB_CLIENT_SECRET="your-github-client-secret"
GOOGLE_CLIENT_ID="your-google-client-id"
GOOGLE_CLIENT_SECRET="your-google-client-secret"

# Stripe
STRIPE_PUBLIC_KEY="your-stripe-public-key"
STRIPE_SECRET_KEY="your-stripe-secret-key"

# AI Service (OpenAI, Anthropic, etc.)
AI_API_KEY="your-ai-api-key"

🚀 Deployment

Vercel (Recommended)

  1. Push your code to GitHub
  2. Connect your repository to Vercel
  3. Configure environment variables
  4. Deploy with one click

Other Platforms

The application can be deployed to any platform that supports Node.js:

  • Netlify
  • Railway
  • DigitalOcean App Platform
  • AWS
  • Google Cloud Platform

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature-name
  5. Submit a pull request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📞 Support

If you have any questions or need help, please:

  • Open an issue on GitHub
  • Check the documentation
  • Join our community Discord (coming soon)

Built with ❤️ using Next.js and AI "# custmax-website-new"

Releases

No releases published

Packages

No packages published