Win an auction and own domains in TON. The app works fine in Telegram Web App: @autodomains_bot
This is server side part of TON Domains bot. It was build quite fast, in a hackathon way, to reach MVP asap and bring the value to community. We are dreaming to rewrite everything from scratch, but MVP is MVP. Don't judge this too hard, better contribute and help this to improve.
- Current application built on Nest framework.
- Database management via Prisma.
- Blockchain transactions using Tonweb together with Ton3 libraries.
cp .env.local .env
- Fill out
.env
files with your secrets: bot_token, ton_auth_secret static key, etc. docker-compose up -d mysql
and create new DBnpm install
npx prisma db push
- one time command to run migrations in your DBnpx prisma generate
- one time command to generate types for Prisma entitiesnpm run start:dev
- to launch the app for dev
Check schema.prisma contains all tables, entities and relations.
- UserFollow - domains that the user follows
- BlockchainDomain - system table to keep domains synced with the blockchain
- User - users table
- BalanceTransactions - system table with all topup/withdraw transactions
- Token - system authorisation table
Later on we gonna add dedicated Contribute.md, for now it's enough to stick to these rules:
- Use conventional commits while adding changes in your PR
- When making the PR, describe what problem you solve and/or attach an issue
- Please make it clean, imagine your grandchildren gonna see that code
Just in case, here is our TON wallet: EQCpYlastF0WWcl-H9DklvLywkZYIgRF6HaPrnh5yp_-7R2U
All donations will be used, to buy some lush Pu'er tea to boost our productivity 🍵