Source code of the TonClubs Bot
- Create a new empty PostgreSQL database and get the connection string
- Create a new Telegram bot using @BotFather and get the bot token
- Create a new AWS S3 bucket, a new AWS IAM user with access to the bucket, and get the access credentials
- Fill in the .env file using the .env.sample file as a template
- Install dependencies (
yarn
) - Push the Prisma Schema to your database (
yarn prisma db push
) - Start the bot (
yarn start
)
- Clone the tonclubs-contracts repository
- Follow the instructions in the tonclubs-contracts README to prepare the contracts
- Run
yarn compile
in the tonclubs-contracts repository - Copy the compiled contracts from the tonclubs-contracts repository to the
src/Contracts/BOCs
folder in this repository