Skip to content

blackestwhite/nuxt-telegram-mini-app-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nuxt Minimal Starter

Essential Documentation

Setup

Make sure to install dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

# pnpm
pnpm dev

# yarn
yarn dev

# bun
bun run dev

Production

Build the application for production:

# npm
npm run build

# pnpm
pnpm build

# yarn
yarn build

# bun
bun run build

Locally preview production build:

# npm
npm run preview

# pnpm
pnpm preview

# yarn
yarn preview

# bun
bun run preview

Check out the deployment documentation for more information.

Configuring Allowed Hosts

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
    }
  }
})

About

A modern Nuxt.js template for building Telegram Mini Apps with TypeScript support. Features Vue-TG integration, pre-configured development environment, and seamless Telegram Web App SDK integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages