A modern, type-safe, and scalable monorepo template for building TON blockchain applications
Features β’ Tech Stack β’ Project Structure β’ Getting Started β’ Environment Variables β’ Development β’ Deployment β’ Contributing β’ License
π·πΊ Π ΡΡΡΠΊΠ°Ρ Π²Π΅ΡΡΠΈΡ
π Type Safety & Performance
π¨ Modern UI/UX
π Web3 Integration
π Developer Experience
π Monitoring & Analytics
turborepo-ton-trpc/
βββ apps/ # Application packages
β βββ web/ # Next.js frontend application
β βββ server/ # tRPC API server
β βββ blueprint/ # TON smart contracts
βββ packages/ # Shared packages
β βββ configs/ # Shared configuration
β βββ database/ # Database schema and utilities
β βββ logger/ # Logging utilities
β βββ tonconnect-ui-react/ # TON Connect React fix
βββ turbo.json # Turborepo configuration
βββ package.json # Root package.json
bun dev
bun test # Run all tests
bun lint # Run ESLint
bun format # Run Prettier
This project uses a single .env
file in the root directory to manage all environment variables for both frontend and backend services.
Copy the example environment file:
cp .env.example .env
Update the variables in .env
as needed:
DATABASE_URL
: PostgreSQL connection stringREDIS_URL
: Redis/KeyDB connection URLREDIS_PASSWORD
: Redis/KeyDB passwordNEXT_PUBLIC_TONCONNECT_MANIFEST_URL
: TON Connect manifest URLNEXT_PUBLIC_API_URL
: API base URLFor development, the default values in .env.example
should work out of the box with the provided Docker setup.
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.