description |
---|
testing from gitbook |
MayBee is a decentralized prediction market platform built on the Flow blockchain.
MayBee Telegram Smart Contract Github
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js (v14 or later)
- npm or yarn
- Flow CLI
- Telegram Bot Token
-
Clone the repository:
git clone https://github.com/yourusername/maybee.git cd maybee
-
Install dependencies:
npm install
or if you're using yarn:
yarn install
-
Create a
.env
file in the root directory and add your environment variables:NEXT_PUBLIC_DYNAMIC_ENV_ID=your_dynamic_env_id TELEGRAM_BOT_TOKEN=your_telegram_bot_token LOGIN_URL=your_login_url
To run the application in development mode:
npm run dev
or
yarn dev
The application will be available at http://localhost:3000
.
- Push your code to a GitHub repository.
- Go to Vercel and sign in or create an account.
- Click "Import Project" and select your GitHub repository.
- Configure your project settings:
- Framework Preset: Next.js
- Build Command:
npm run build
oryarn build
- Output Directory:
.next
- Add your environment variables in the Vercel project settings.
- Click "Deploy" and wait for the deployment to complete.
To run the Telegram bot:
-
Ensure you have set the
TELEGRAM_BOT_TOKEN
in your.env
file. -
Run the bot script:
ts-node telegram/bot.ts
The bot should now be active and responding to commands in your Telegram channel.
- Next.js - The React framework used
- Flow Blockchain - The blockchain platform
- Dynamic - For wallet connection and authentication
- Telegraf - Telegram bot framework