Skip to content

🎨 Bumm Dashboard: Next.js dApp with Solana wallet integration, AI-powered smart contract generation, and interactive demo

License

Notifications You must be signed in to change notification settings

bumm-ai/frontend

Repository files navigation

Bumm Dashboard

🎨 Bumm Dashboard: Next.js dApp with Solana wallet integration, AI-powered smart contract generation, and interactive demo

Features

  • πŸ”— Solana Wallet Integration: Connect with Phantom, Solflare, and other popular wallets
  • πŸ€– AI-Powered Smart Contract Generation: Generate, audit, build, and deploy Solana smart contracts using AI
  • πŸ’¬ Interactive AI Chat: Real-time chat with AI agents for smart contract development assistance
  • πŸ“± Responsive Design: Works seamlessly on desktop, tablet, and mobile devices
  • 🎯 Interactive Demo: Live demonstration of the platform capabilities
  • ⚑ Real-time Updates: Live status tracking for contract generation, building, and deployment
  • 🎨 Modern UI/UX: Built with Next.js 14, Tailwind CSS, and Framer Motion animations

Tech Stack

  • Framework: Next.js 14 (App Router)
  • Styling: Tailwind CSS
  • Animations: Framer Motion, GSAP
  • Icons: Lucide React
  • Blockchain: Solana Web3.js, Wallet Adapter
  • Language: TypeScript
  • State Management: React Hooks, Context API
  • Analytics: Google Tag Manager

Getting Started

  1. Install dependencies:
npm install
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 in your browser.

Project Structure

src/
β”œβ”€β”€ app/                          # Next.js App Router
β”‚   β”œβ”€β”€ api/                      # API routes
β”‚   β”‚   β”œβ”€β”€ backend/             # Backend proxy routes
β”‚   β”‚   └── proxy/               # General proxy routes
β”‚   β”œβ”€β”€ globals.css              # Global styles
β”‚   β”œβ”€β”€ layout.tsx               # Root layout
β”‚   └── page.tsx                 # Home page
β”œβ”€β”€ components/                   # React components
β”‚   β”œβ”€β”€ analytics/               # Analytics components
β”‚   β”œβ”€β”€ dashboard/               # Main dashboard screens
β”‚   β”‚   β”œβ”€β”€ ChatScreen.tsx      # AI chat interface
β”‚   β”‚   β”œβ”€β”€ Dashboard.tsx       # Main dashboard
β”‚   β”‚   └── LoginScreen.tsx     # Login/authentication
β”‚   β”œβ”€β”€ demo/                    # Interactive demo
β”‚   β”‚   └── InteractiveDemo.tsx # Live demo component
β”‚   β”œβ”€β”€ providers/               # Context providers
β”‚   β”‚   └── WalletProvider.tsx  # Wallet context
β”‚   └── ui/                      # Reusable UI components
β”‚       β”œβ”€β”€ AuditModal.tsx      # Contract audit modal
β”‚       β”œβ”€β”€ BuildModal.tsx      # Contract build modal
β”‚       β”œβ”€β”€ DeployModal.tsx     # Contract deployment modal
β”‚       β”œβ”€β”€ InteractiveCodeEditor.tsx # Code editor
β”‚       β”œβ”€β”€ WalletModal.tsx     # Wallet connection modal
β”‚       └── ...                  # Other UI components
β”œβ”€β”€ config/                       # Configuration files
β”‚   └── api.ts                   # API configuration
β”œβ”€β”€ hooks/                        # Custom React hooks
β”‚   β”œβ”€β”€ useAnalytics.ts         # Analytics tracking
β”‚   β”œβ”€β”€ useBummApi.ts           # API integration
β”‚   β”œβ”€β”€ useCredits.ts           # Credits system
β”‚   └── useGSAPAnimations.ts    # Animation hooks
β”œβ”€β”€ lib/                         # Utility libraries
β”‚   β”œβ”€β”€ api.ts                   # API client
β”‚   β”œβ”€β”€ mockApi.ts               # Mock API for development
β”‚   └── utils.ts                 # Utility functions
β”œβ”€β”€ services/                     # Service layers
β”‚   β”œβ”€β”€ api.ts                   # API service
β”‚   β”œβ”€β”€ bummService.ts           # Bumm-specific services
β”‚   └── creditService.ts         # Credits management
β”œβ”€β”€ types/                        # TypeScript type definitions
β”‚   └── dashboard.ts             # Dashboard types
└── utils/                        # Utility functions
    └── generationCommands.ts    # AI generation commands

Key Components

Dashboard Components

  • Dashboard.tsx: Main dashboard interface with project management
  • ChatScreen.tsx: AI chat interface for smart contract development
  • LoginScreen.tsx: Authentication and wallet connection

Interactive Demo

  • InteractiveDemo.tsx: Live demonstration of platform capabilities
  • Features real-time AI chat, code generation, and project management
  • Responsive design for desktop, tablet, and mobile

UI Components

  • InteractiveCodeEditor.tsx: Advanced code editor with syntax highlighting
  • AuditModal.tsx: Security audit interface
  • BuildModal.tsx: Contract building interface
  • DeployModal.tsx: Contract deployment interface
  • WalletModal.tsx: Wallet connection and management

Services & Hooks

  • useBummApi.ts: Main API integration hook
  • useCredits.ts: Credits system management
  • useAnalytics.ts: Analytics tracking
  • bummService.ts: Core business logic services

Development

Available Scripts

npm run dev          # Start development server
npm run build        # Build for production
npm run start        # Start production server
npm run lint         # Run ESLint

Environment Variables

Create a .env.local file with:

NEXT_PUBLIC_API_URL=your_api_url
NEXT_PUBLIC_ANALYTICS_ID=your_analytics_id

Features in Detail

AI-Powered Smart Contract Generation

  • Natural language to Solana smart contract conversion
  • Real-time code generation with syntax highlighting
  • Support for tokens, NFTs, DeFi protocols, and gaming contracts

Interactive Demo

  • Live demonstration of platform capabilities
  • Real-time AI chat with proper message animations
  • Responsive design for all device sizes
  • Auto-scroll chat functionality

Wallet Integration

  • Support for multiple Solana wallets
  • Real-time balance tracking
  • Transaction management
  • Network switching (MainNet/DevNet)

Credits System

  • AI-powered operations cost credits
  • Real-time credit tracking
  • Credit history and management
  • Insufficient credits handling

License

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

About

🎨 Bumm Dashboard: Next.js dApp with Solana wallet integration, AI-powered smart contract generation, and interactive demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published