Skip to content

aruncode49/Flash

Repository files navigation

Flash AI πŸš€

Flash AI is a full-stack application built with Next.js that empowers developers to transform user prompts into functional React applications. With a side-by-side chat interface and live code editor, you can easily create, edit, and preview your code in real-time. Additionally, Flash AI includes payment integration to upgrade your plan for more tokens, allowing extended functionality.


✨ Features

1. Landing Page 🌟

  • Clean and modern design.
  • Welcomes users with a brief introduction to Flash AI.

2. AI Chat & Code Generation πŸ’¬πŸ’»

  • Chat Interface: Seamlessly interact with Flash AI to generate code based on your prompts.
  • Code Editor: Fully functional code editor powered by codesandbox sandpack react.
  • Right Panel:
    • Code View Tab: Displays the generated code.
    • Preview Tab: Runs the code live for immediate feedback.
  • Continuous Updates: Modify the code further by updating prompts directly.

3. Payment Integration πŸ’³

  • Upgrade your plan using PayPal Integration.
  • Purchase additional tokens to enhance your experience.

πŸ› οΈ Technologies Used

Technology Purpose
Codesandbox Sandpack Provides a live code editor and preview environment.
Google Gemini API Powers the chat and code generation functionality.
PayPal Integration Enables secure payment processing for token upgrades.
Shadcn Offers reusable and stylish components for UI/UX consistency.
React Google Oauth Handles user authentication via Google accounts.
Convex Real-time database for storing user data, code files, and other assets.
Jotai State management for managing app-wide data.
Next.js Framework for building and managing the full-stack application.

πŸš€ Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn package manager
  • Google API Credentials (for authentication)
  • PayPal Developer Account (for payment integration)

Installation

  1. Clone the repository:

    git clone https://github.com/aruncode49/Flash.git
    cd Flash
  2. Install dependencies:

    npm install
    # or
    yarn install
  3. Set up environment variables: Create a .env.local file in the root directory and add the following:

    NEXT_PUBLIC_GOOGLE_OAUTH_CLIENT_ID=your_google_client_id
    CONVEX_DEPLOYMENT=automatically_generated_by_convex
    NEXT_PUBLIC_PAYPAL_CLIENT_ID=your_paypal_client_id
    NEXT_PUBLIC_CONVEX_URL=your_convex_project_url
    NEXT_PUBLIC_GEMINI_API_KEY=your_google_gemini_api_key
  4. Run the development server and convex database:

    npm run dev & npx convex dev
  5. Open the application: Visit http://localhost:3000 in your browser.


πŸ–ΌοΈ Screenshots

Landing Page

image

Chat & Code Generation

image

image

Payment Page

image


πŸ’¬ Contact

If you have any questions or suggestions, feel free to reach out:


Enjoy using Flash AI and supercharge your development workflow! πŸš€