How to Create Your Own Plugin
In this section, we will demonstrate how to create and prepare your plugin for publication in the Store using an example.
We will consider a simple example - creating a basic Todo List
.
To implement this, we will go through the following stages:
- Writing the code
- Registering the code as a plugin application
- Testing the application on your account
Let's Start with Code Creation
<!-- There are 3 types of account extensions:
- Add your functionality to existing pages;
- Add new pages to the GetCourse account;
- Add new behavior or API (for example, "when a new response is received for a lesson - record it in a table and send it to an external service");
We will sequentially consider all three. This is done in the Chatium IDE, using code. The code is written in a specific account and runs within it.
The written code can be wrapped in a "plugin," which can be connected to external accounts. In external accounts, the functionality will run, but they will not have access to the code. Administrators of external accounts can connect the plugin independently.
Adding a New Module
We will create a simple example: a page where students can enter their height and weight. After entering the data, we add the person to a group, the script calculates their body mass index, and then the student can input a new weight value and see a nice graph of changes.
After that, we will introduce a scoring system, awarding points for weight loss. Points will be added for weight reduction, while no action will be taken for weight gain. <!-- Additionally, we will create an admin interface where we will display people and their metrics in a sortable table. --> <!-- ## Adding a Form to Existing Pages
We will add a prompt on the existing lesson pages on the right side to enter height and weight, and for those who have entered their data, we will display the last 5 entries.
Adding Behavior
When adding a person to a group, we will send them an email every day reminding them to measure their weight and update it.