This project is a Mini Telegram App built using React, TypeScript, and Vite. It simulates a 2047 game for Telegram users, with the possibility to add referrals and a referrer system. Users can play 2048 to gain coins, with the option to refer others to the game, earning rewards for both the referrer and the referee.
To see a real example of this concept, go to the Telegram Bot Example.
- Coin: Users play 2048 to get coins and accumulate points.
- Referrals: Players can invite others to join using a referral link.
- Referrer System: When a new user signs up using a referral link, the original referrer earns bonuses.
- Responsive UI: Optimized for mobile and Telegram's in-app browser.
- Fast Performance: Built with Vite for rapid development and performance.
- React - Frontend framework
- TypeScript - Type safety and development efficiency
- Vite - Fast build tool for development and production
To run the app locally:
-
Clone the repository:
git clone https://github.com/maxwell882000/2048Ton.git
-
Navigate to the project directory:
cd 2048Ton -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open the app in your browser at
http://localhost:3000.
- Launch the app and start playing.
- Create and share a referral link to invite others.
- Track referrals and bonuses via the referrer system.
npm run dev: Starts the Vite development server.npm run build: Builds the app for production.npm run preview: Previews the production build locally.npm run lint: Runs ESLint for code quality.
This project is licensed under the MIT License. See the LICENSE file for more details.