A modern Telegram Mini App built with React, TypeScript, and Vite. This gaming application features a mining system, task management, shop functionality, friend referrals, and a wheel of fortune game.
- Mining System: Tap-to-earn gameplay with level progression
- Task Management: Complete tasks to earn rewards
- Shop: Purchase upgrades and premium items
- Friends System: Invite friends and earn referral bonuses
- Wheel of Fortune: Spin to win prizes and rewards
- Real-time Updates: Synchronized coin balance and progress tracking
- Responsive Design: Optimized for mobile devices within Telegram
- Frontend: React 18 + TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS + CSS Modules
- Routing: TanStack Router
- State Management: Redux Toolkit + React Query
- UI Components: Radix UI + Custom Components
- Animations: Framer Motion
- Icons: Lucide React + Iconsax React
- Carousels: Swiper.js
- Package Manager: PNPM
-
Clone the repository
git clone https://github.com/Pouria-Hjt/telegram-miniapp.git cd telegram-miniapp -
Install dependencies
pnpm install
-
Start development server
pnpm dev
-
Build for production
pnpm build
src/
├── @types/ # TypeScript type definitions
├── assets/ # Static assets and icons
├── components/ # Reusable UI components
│ ├── ui/ # Base UI components (Button, Drawer, etc.)
│ ├── Cards/ # Card components
│ ├── Drawers/ # Modal/drawer components
│ └── ...
├── constants/ # Application constants and URLs
├── features/ # Feature-based components
├── hooks/ # Custom React hooks
├── providers/ # Context providers
├── routes/ # Application routes
├── utils/ # Utility functions
└── views/ # Page components
- Interactive tap-to-mine gameplay
- Progressive level system with rewards
- Energy/stamina management
- Real-time coin balance updates
- Daily and special tasks
- Progress tracking
- Reward distribution
- Task completion validation
- Purchasable upgrades
- Premium items
- Inventory management
- Transaction history
- Friend referral system
- Leaderboards
- Social sharing
- Bonus rewards for invitations
pnpm dev- Start development serverpnpm build- Build for productionpnpm preview- Preview production buildpnpm lint- Run ESLint
This project is configured for deployment on various platforms:
- Vercel/Netlify: Auto-deploy from GitHub
- Custom Server: Build and serve static files
- Telegram Bot: Integrate with Telegram Bot API
The app utilizes Telegram's Web App API for:
- User authentication
- Profile information access
- Native UI integration
- Payment processing (if applicable)
- Haptic feedback
- Theme adaptation
- Responsive Design: Mobile-first approach
- Dark/Light Theme: Adapts to Telegram theme
- Smooth Animations: Framer Motion powered transitions
- Toast Notifications: Real-time feedback
- Loading States: Enhanced user experience
- Haptic Feedback: Native mobile feel
- TypeScript for type safety
- ESLint for code quality
- Optimized bundle size with Vite
- Lazy loading for routes
- React Query for efficient data fetching
- Proper error boundaries
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please use the GitHub Issues to report bugs or request features.
For support, please contact the development team or create an issue in the repository.
Made with ❤️ for the Telegram ecosystem