- vue-tg Documentation - Vue.js wrapper for Telegram Mini Apps
- Telegram Mini Apps Documentation - Official Telegram Mini Apps development guide
- Nuxt Documentation - Learn more about Nuxt.js
Make sure to install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun installStart the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run devBuild the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run buildLocally preview production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run previewCheck out the deployment documentation for more information.
To prevent errors when using Telegram Mini App with ngrok or other tunneling services, make sure to add your allowed hosts in nuxt.config.ts:
export default defineNuxtConfig({
vite: {
server: {
allowedHosts: ['.ngrok-free.app'] // Add your domain here
}
}
})