Code

OpenFaaS

OpenFaaS is a backend function service designed to help developers deploy and manage serverless functions easily. It integrates with various systems, enabling automatic scaling of functions based on demand. In your admin panel, OpenFaaS serves as the backend code for handling various functions efficiently.

How to Add an OpenFaaS Function

To create a new OpenFaaS function, follow these steps:

Step.1 Navigate to the Settings:

• From the Menu bar, go to the Settings from the menu bar.

Step.2 Access the Code Section:

• Click on the Code section.

• From the list, select Functions.

Step.3 Open the OpenFaaS Page:

• You will be taken to the OpenFaaS functions page, where a table will display all the OpenFaaS functions that have already been created within the admin panel.

Step.4 Create a New OpenFaaS Function:

• To create a new OpenFaaS function, click on the + Add button.

  • • A form with 4 fields will appear. Complete them as follows:

    1. Resource(Ресурс): This will default to the company’s GitLab repository.

    2. Link(Ссылка): Provide a link for the OpenFaaS function (this is a required field).

    There are some requirements for entering link(Ссылка), should not contain any Uppercase letter and should not be space between words. Instead of space, should use “_” symbol.

    1. Label(Названия): Enter a label for the function (required).

    There are some requirements for entering Label (Названия), should not contain any Uppercase letter and should not be space between words. Instead of space, should use “_” symbol.

    1. Description(Описания): Optionally, you can add a description for the function to provide additional details.

Step.5 Save the OpenFaaS Function:

• Once you have completed the form, click Save. The function will automatically be saved to the Udevs GitLab repository, specifically within the ucode_function_group folder.


Micro-Front

Microfrontend architecture allows different teams to develop, deploy, and manage parts of a frontend application independently, while still ensuring a cohesive user experience. In the admin panel, Microfrontend functions enable you to integrate and manage separate frontend modules seamlessly.

How to Add a Microfrontend Function

To create a new Microfrontend function, follow these steps:

Step.1 Navigate to the Settings:

• In the Menu bar, go to Settings from the menu bar.

Step.2 Access the Code Section:

• Click on the Code section.

• From the list, select Microfrontend.

Step.3 Open the Microfrontend Page:

• You will be taken to the Microfrontend function page, where you can view a table of all the existing Microfrontend functions that have already been created within the admin panel.

Step.4 Create a New Microfrontend Function:

• To create a new Microfrontend function, click on the + Add button.

• You will be directed to a new creation page, where you need to fill in the following five fields:

  1. Resource(Ресурс): This will default to the company’s GitLab repository.

  2. Link (Ссылка): Enter a link for the Microfrontend function (required).

There are some requirements for entering link(Ссылка), should not contain any Uppercase letter and should not be space between words. Instead of space, should use “-” symbol.

  1. Label (Названия): Enter a label for the function (required).

There are some requirements for entering Label (Названия), should not contain any Uppercase letter and should not be space between words. Instead of space, should use “-” symbol.

  1. Framework(Фреймворк): Select the framework for the Microfrontend. You can choose between React, Vue, or Angular.

  2. Description(Описания): Optionally, provide a description for the function.

Step.5 Save the Microfrontend Function:

• After completing the form, click Save. The new Microfrontend function will be automatically saved to the Udevs GitLab repository, under the ucode_micro_frontend folder.

Last updated