Repository: telegram-mini-apps-dev/vanilla-js-boilerplate Branch: master Commit: 31bd721d67ce Files: 4 Total size: 10.1 KB Directory structure: gitextract_9um0k6cc/ ├── .github/ │ └── workflows/ │ └── static.yml ├── LICENSE ├── README.md └── index.html ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/workflows/static.yml ================================================ # Simple workflow for deploying static content to GitHub Pages name: Deploy static content to Pages on: # Runs on pushes targeting the default branch push: branches: ["main"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read pages: write id-token: write # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" cancel-in-progress: false jobs: # Single deploy job since we're just deploying deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v5 - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: # Upload entire repository path: '.' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2023 TON Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================


logo of telegram web apps

# Telegram Mini Apps Basic Example This is a basic and straightforward Telegram Mini App(TMA) implemented using plain JavaScript, HTML, and CSS. This project aims to provide a minimalistic example of how to create a simple TWA and launch it within Telegram without relying on complex build tools or bleeding-edge libraries. - App is available via direct link: https://t.me/simple_telegram_mini_app_bot/app - Or you can launch app with a bot menu button: https://t.me/simple_telegram_mini_app_bot - Deployment URL: [https://twa-dev.github.io/simple-telegram-web-app/](https://telegram-mini-apps-dev.github.io/vanilla-js-boilerplate/) ## Features - Minimalistic user interface. - No external libraries or frameworks used. - Easy to understand and modify. ## Getting Started ### Prerequisites To run this example, you'll need a modern web browser with JavaScript enabled. ### Installation 1. Clone this repository to your local machine: ```bash git clone https://github.com/Telegram-Mini-Apps-Dev/vanilla-js-boilerplate 2. Navigate to the project directory: ```bash cd vanilla-js-boilerplate Open index.html in your preferred code editor or IDE. ### Usage 1. Open index.html in your preferred code editor or IDE. 2. Make your changes 3. Create your own GitHub repository, commit and push your updates. 4. Go to your repository GitHub page and open Settings. Check the Pages tab and Build and deployment section. If GitHub Actions option was selected, assets should be deployed to Pages and there will be an URL like `https://.github.io/simple-telegram-mini-app/`. You can copy this URL and use it with [BotFather](https://tg.me/BotFather) bot to create your very own TWA. ### Customization Feel free to customize this web app to suit your needs. You can modify the HTML, CSS, and JavaScript files as required. ## Contributing If you'd like to contribute to this project, please follow these steps: 1. Fork the repository. 2. Create a new branch for your feature or bug fix. 3. Make your changes and commit them with descriptive messages. 4. Push your branch to your fork. 5. Create a pull request to the main repository's main branch. ## License This project is licensed under the MIT License - see the LICENSE file for details. ================================================ FILE: index.html ================================================ Telegram Mini Apps Vanilla JS Sample App
logo of telegram web apps

Modals

Links

Buttons