After mastering the development and deployment of the basic task, we will take a deeper dive into web3 concepts. This will be achieved by implementing these concepts through a practical example of linktree. Get ready for an enriching learning experience!
This Koii task is the second task in our series of explaining Koii tasks. The
What is Linktree?
A LinkTree is a customized profile page that contains all your important links.
The images below show a few examples of the Koii Linktree:
You can clone the project here, and navigate to the task-template-linktree folder
Navigate to the test folder
You will find some pre-written tests here. You can go through the tests for all the files explained in this tutorial. Once you have a better understanding of the files discussed in this tutorial, feel free to edit these tests to familiarize yourself better with their implementation. You will need a strong understanding of these concepts for writing your Koii tasks.
The goal of this tutorial is to familiarize you with intermediate topics that will help you write your own Koii tasks.
What Will You Learn in This Tutorial?
This tutorial's goal is to familiarize you with more advanced concepts that are applied in the linktree task, such as database management and API endpoints. Writing your own Koii tasks will be made easier for you if you have a good understanding of these features.
However, when it comes to more complex projects involving database management and the creation of API endpoints for user requests, several questions arise. let's talk about three crucial pieces of logic needed for this project to function properly:
|db_model.js||A local database is required to store and manage data such as Linktree information, proofs, and the authentication list on a node operator's local device. This is important because it reduces the need for frequent API calls to a remote database.|
|routes.js||API endpoints will be required for the project to handle incoming requests, process data, and return appropriate responses to the client.|
|db_sharing.js||Since each Koii node has its local database when one node’s data is updated, it must also be updated on other nodes to ensure consistency. The |
If you encounter any difficulties, feel free to contact us at Discord.