aRISE is a decentralized application built with Next.js and Firebase, designed to create an engaging social experience through RISE blockchain. The application features a modern, professional UI matching the RISE Chain Portal style, with a clean purple gradient theme and glass-morphic design elements.
- 🔐 Wallet Integration: Connect your Web3 wallet to participate with real-time network status
- ⏱️ 24-Hour Cooldown: Users can participate once every 24 hours with a visual countdown timer
- 📱 Social Sharing: Share your participation on X (Twitter) and Telegram with real-time count updates
- 🔗 Unique Invite Links: Generate and share personalized invite links
- 🎨 Modern UI: Built with Tailwind CSS, featuring RISE Chain Portal-inspired design
- Glass-morphic components with gradient effects
- Smooth animations and transitions
- Responsive layout with modern typography
- 🔄 Real-time Updates: Live updates of user and total aRISE counts
- 🎯 Transaction Status: Clear visual feedback for transaction states with expandable details
- 🎉 Interactive Animations: Smooth animations for count updates and state changes
- 🛡️ Error Handling: Comprehensive error handling with toast notifications
- 💎 Token Management: View balances and transaction history with modern card UI
- 🤖 AI Integration: Built-in AI capabilities using Genkit for enhanced user experience
- 📊 Analytics: Vercel Analytics integration for performance monitoring
- Frontend Framework: Next.js 15.2.3 with TypeScript
- Styling: Tailwind CSS with custom animations and glass-morphic effects
- UI Components: Radix UI with custom shadcn/ui components
- State Management: React Query with Firebase integration
- Backend: Firebase
- Blockchain: RISE Chain (EVM-compatible)
- Web3 Integration: Wagmi and Viem
- Form Handling: React Hook Form with Zod validation
- Date Handling: date-fns
- Animations: Framer Motion
- Notifications: Sonner toast system with glass-morphic design
- AI Integration: Genkit with Google AI
- Analytics: Vercel Analytics
-
Clone the repository:
git clone [repository-url]
-
Install dependencies:
npm install
-
Set up environment variables:
- Copy
.env.example
to.env
- Fill in the required environment variables:
GOOGLE_GENAI_API_KEY
: Google GenAI API key (for Genkit integration)
- Copy
-
Run the development server:
npm run dev
-
Open http://localhost:9002 in your browser
npm run dev
: Start the development server with Turbopacknpm run genkit:dev
: Start Genkit AI development servernpm run genkit:watch
: Start Genkit AI development server with watch modenpm run build
: Build the application for productionnpm run start
: Start the production servernpm run lint
: Run ESLintnpm run typecheck
: Run TypeScript type checking
/src/app
: Next.js app router pages and layouts/src/components
: Reusable UI componentsarise-button.tsx
: Main interaction component with gradient effectssocial-share.tsx
: Social sharing functionalitytransaction-status.tsx
: Transaction state display with expandable detailstoken-display.tsx
: Token balance and transaction historytoken-transfer.tsx
: Token transfer interface
/src/hooks
: Custom React hooksuseRiseChain.ts
: RISE Chain connection managementuseTransactionStatus.ts
: Transaction status trackinguseCooldown.ts
: 24-hour cooldown implementation
/src/ai
: AI integration using Genkit/src/lib
: Utility functions and constants/src/types
: TypeScript type definitions/contracts
: Smart contract code/docs
: Project documentation
- Seamless connection to Web3 wallets
- Real-time network status indicator
- Automatic network detection and switching
- Clear error messages with toast notifications
- Modern glass-morphic card design for balances
- Transaction history with expandable details
- Secure transfer functionality with validation
- Real-time balance updates
- Loading states with skeleton UI
- Visual countdown timer
- Persistent cooldown state using localStorage
- Clear feedback when cooldown is active
- Real-time count updates in share messages
- Support for X (Twitter) and Telegram
- Personalized share URLs with referral tracking
- Real-time transaction status updates
- Expandable transaction details
- Clear visual feedback for all transaction states
- Comprehensive error handling with toast notifications
- 5-second delay for balance refresh after confirmation
- Genkit-powered AI features
- Google AI integration for enhanced functionality
- Development and watch modes for AI features
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.