Skip to content

LeadBest/ton-hackthon

Repository files navigation

Twitter Github

Leadbest Consulting Group - TON Dooby

"Dooby has no master! Dooby is a free elf, and Dooby has come to save Harry Potter and his friends!"

Demo Video

Idea

Our idea is build a telegram bot for community management, it has 3 functionalities:

  1. Missions: User can EASILY take missions for rewards. Project owner can EASILY gather user's information without checking messy data.

  2. Rewards: User can gather rewards without fee

  3. NFT Store: User can EASILY buy NFTs through dialogue interaction

Technical Stacks

  1. ton smart contract: Used to issue rewards
  2. ton-connect: Used to gather user's information
  3. telegram robot: Used to interact with users

Deployment Steps

1. Deploy NFT Collection Contract

cd ton-nft-deployer
npm install
npm run start

2. Run local API Server

cd dooby-api
```shell
# 1. build image
$ docker build -t dooby-app .

# 2. test at local
$ docker run -e PORT=80 -p 80:80 dooby-app

3. Run local Web Server

cd webview
npm install
npm start

4. Put nftCloudFunction into Google Cloud function endpoint

cd nftCloudFunction
npm install
npm run start

5. Put appScript into Google appScipt endpoint

  1. Create 4 new project in google appScript

  2. Paste the 4 .gs files individually into each project

    appScript Reference

    Google Apps Script

    Google appScript Console

Dooby API Documentation

Reference

Demo Slide