TMA Starter Kit is a developer-friendly template for building Telegram Mini Apps. It provides a ready-to-use foundation with a modern tech stack, allowing developers to focus on business logic rather than project setup.
- Fast Development β Pre-configured setup with essential tools.
- Scalability β Modular architecture for easy expansion.
- Modern Tech Stack β Uses Quasar (Vue.js), TypeScript, Go, and MongoDB.
- Built-in DevOps β CI/CD pipelines, Docker Compose, and deployment scripts included.
TMA-Starter-Kit/
βββ frontend/ # Quasar-based Vue.js frontend
βββ backend/ # Go API backend
βββ devops/ # DevOps tools, CI/CD, Docker Compose files
- Frontend: Quasar (Vue.js), TypeScript, Composition API
- Backend: Go
- Database: MongoDB
- DevOps: Docker, CI/CD, Deployment automation
- Node.js & npm (for frontend)
- Go (for backend)
- Docker & Docker Compose (for containerized deployment)
- LocalTunnel (for exposing the app to the internet)
Clone the repository:
git clone https://github.com/devflex-pro/tma-starter-kit.git
cd tma-starter-kit
docker compose -f devops/docker-compose.dev.yml up -d
Install LocalTunnel:
npm install -g localtunnel
Run the following command to expose your app:
lt --port 9000 --subdomain <subdomain>
Your application will now be accessible online at https://.loca.lt/.
To integrate your application as a Telegram Web App, follow these steps:
- Open Telegram and search for @BotFather.
- Start a chat and send the command:
/newbot
- Follow the instructions to provide a name and username for your bot.
- After completion, BotFather will provide a bot token. Save this token for later use.
- In BotFather, send:
/newapp
- Provide a name for your Web App when prompted.
- Enter a short description of your application.
- Provide the URL where your Web App is hosted (e.g.,
https://<subdomain>.loca.lt/
). - After registration, you will receive confirmation that the Web App has been created.
Now your Telegram Web App is fully configured and ready to use! π
Contributions are welcome! Feel free to submit a PR or open an issue.
MIT License.