-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI utility to initialize a Telegram Mini Apps application. #460
Comments
I am currently available to undertake this grant. I am considering implementing this utility in If the scope of work is satisfactory for the grant, I propose a compensation of 2000 USD in TON. The grant can be completed by the end of this month. |
Is this grant related to TON in any way? |
I am not sure, but we could probably reduce the scope of work removing the templates criterias part. This grant could focus on the technical part of such a utility. Templates could be improved outside of the grant. This will lead to the earlier grant completion and reduce of the reward |
I have discussed the idea of implementing such a utility with other developer and we have come to some good thoughts. I didn't notice, but this utility should include integration with TON Connect. Here is how the utility workflow could work:
Developer is allowed to dynamically select or deselect elements, presented in the list, and instantly receive the count of templates available with the specified requirements. In case, there are some templates available, developer proceeds to the project installation. CLI prompts the project root directory, clones the template from GitHub, removes the As long as scope of work changed, I will be back later with a detailed plan and recalculated acceptable reward. |
I've returned with a comprehensive plan for what needs to be accomplished. Given the absence of templates that concurrently utilize tma.js and TON Connect, our first step is to enhance the existing templates by adding documentation and incorporating TON Connect packages. The Solid.js template appears to be the most developed among them, making it a potential basis for the other templates. A practical approach would be to conceptualize a simple application and implement it across all the aforementioned technologies. Considering most of the templates are written in TypeScript, it's important to also offer JavaScript versions, which are currently lacking. Next, we need to develop the CLI tool. This involves completing the following tasks:
TasksMilestone 1This milestone focuses on delivering the MVP version of the final product. It's crucial to offer at least a basic version before new TMA events occur.
Completion of this milestone enables developers to quickly start building their first mini-application. Reward: 800 USD in TON Milestone 2This milestone encompasses the majority of the work needed for the final product.
Reward: 1700 USD in TON RewardI propose a compensation of 2500 USD in TON for completing this job. It seems like we have a lot to do here. |
Hey! The CLI is now ready to be used. At the moment, it runs the interactive process prompting simple questions and cloning the reactjs-template. In the next milestone it will be greatly improved. The React.js template is also almost completed. It now can already be used by other developers, but I am going to improve it a bit and probably add the React Telegram UI developed in the different grant. Well, this is the only 1 thing I would like to add in this milestone. About TON Connect. I've used it and decided to show its usage as simple as I can. In the application, we can just connect our TON wallet and display related information. This will probably be enough to get developers interested in TON. I will think about showcasing the TON connect from more practical side further. |
Hey! I consider the first milestone as completed for now. In the upcoming month I am going to focus on the second stage and decided to decompose the milestone more precisely. Along with this, I will probably improve the application idea in templates. Develop alternatives for the React template using JavaScript and the Telegram SDK.
Create Next.js templates derived from the React templates.
Develop templates for TypeScript.
Develop templates for JavaScript.
Create templates for Solid.js.
Create templates for Vanilla JavaScript.
Enhance the previously developed CLI tool by adding an interactive flow and incorporating the templates mentioned above.
|
i'd like to contribute in this project. are the task updated so that i can work on them? also do you have a better way to contact? |
@samyarkd Hey! I assume, that we could probably share TypeScript and JavaScript versions of the templates. So, I could write their TypeScript version, you could rewrite them using JavaScript + JSDoc. Have to think about how we could share it |
Hey! We have finally completed working on this grant. You can find all 18 templates in the @Telegram-Mini-Apps org. Here is the shortcut. As long as @samyarkd didn't respond in Telegram, I decided to merge my efforts with Dmitry on the final completion of the task. We are sharing the reward in the following proportions:
|
@heyqbnk @dnischeta thank you for the contribution!To accurately recognize your valuable contributions in our repository, we kindly request you to submit a Pull Request to the Hall of Fame file, providing the wallet address and a link to the bounty with the number. Please follow these steps:
|
Summary
It is necessary to develop an npm package that enables developers to initialize a mini-application using well-known boilerplates. This utility should be accessible via
npx
:The CLI utility should initiate a mini-app installation process by prompting the developer with the following questions:
As a result, the CLI utility should create a project directory using one of the specified boilerplates from GitHub. Here is the list of potential boilerplates:
The rationale for referring to publicly available boilerplates is that creating a project on GitHub from these templates is also an effective method. However, this utility addresses the scenario where a developer prefers not to create a project on GitHub but rather on a different platform.
This initiative should also include the creation of comprehensive documentation within the provided boilerplates to enhance their understandability for developers.
As long as this utility involves cloning the boilerplates, they should meet the following criteria:
Context
As the development of mini applications on the Telegram Mini Apps platform grows in popularity, it's crucial to equip incoming developers with packages, documentation, and utilities to minimize the time required to create their first simple application.
Creating a CLI utility is an excellent strategy for enabling developers to quickly bootstrap a mini app. An interactive application installation process will lower the barrier to entry into technology, particularly benefiting novice developers.
References
An effective alternative, @vkontakte/create-vk-mini-app, is currently available on the VK Mini Apps platform. This could serve as an ideal reference for implementing such a utility.
Estimate suggested reward
The text was updated successfully, but these errors were encountered: