Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/crusaderincode/tma-boilerplate

A complete boilerplate for building Telegram Mini Apps with modern web technologies: Next.js, TypeScript, TailwindCSS, Shadcn UI and Biome
https://github.com/crusaderincode/tma-boilerplate

boilerplate-nextjs nextjs shadcn-ui tailwind telegram telegram-mini-app tma

Last synced: about 2 months ago
JSON representation

A complete boilerplate for building Telegram Mini Apps with modern web technologies: Next.js, TypeScript, TailwindCSS, Shadcn UI and Biome

Awesome Lists containing this project

README

        

# Telegram Mini Apps (TMA) Boilerplate

This project provides a complete boilerplate for building Telegram Mini Apps with modern web technologies: Next.js, TypeScript, TailwindCSS, Shadcn UI and Biome to provide an efficient and easy to use development environment.

## What's inside?

- **Next.js + TypeScript**: Combine the power of React with TypeScript for robust, type-safe development.
- **TailwindCSS**: Quickly build and style your UI with this utility-first CSS framework.
- **Shadcn with Custom Colors**: Use pre-designed components with customizable color settings.
- **Telegram Theme Integration**: Automatically adjusts the app's theme based on Telegram's light or dark mode.
- **Seamless Authentication**: Easily integrate Telegram authentication with built-in support.
- **Auto-expand Feature**: Ensures your app automatically adjusts to full height within the Telegram client.
- **Environment Variable Management**: Easily configure settings for different environments.
- **Effortless Mocking**: Get started quickly with built-in mock environments for testing and development.
- **Easy Access to InitData**: Conveniently handle Telegram's authentication data with direct access to `initData`.

## Getting Started

1. Set up environment variables:
Copy the `.env.example` file to `.env`:
```bash
cp .env.example .env
```

2. Install dependencies:
```bash
npm install
```

3. Start the development server:
```bash
npm run dev
```

4. Open the provided URL in your Telegram client or browser.

## Links

- [Telegram Mini Apps Documentation](https://docs.ton.org/develop/dapps/twa)
- [Inspired by](https://github.com/serafimcloud/founder)

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## License

This project is open source and available under the [MIT License](LICENSE).