Lowcoder Node Service is a powerful tool to develop and host data source plugins using TypeScript.
To start developing data source plugins, follow these simple steps:
- Clone the Repository
You can clone the Repository from Github: https://github.com/lowcoder-org/lowcoder
[email protected]:lowcoder-org/lowcoder.git
- Navigate to the Node Service directory in the Lowcoder Repository.
cd server/node-service
- Install dependencies.
yarn install
- Start the development server.
yarn dev
A data source plugin in Lowcoder is a JavaScript Object that defines various aspects of a data source, including its basic information, configuration form, validation logic, query configurations, and execution logic.
Each plugin is described by an object conforming to the DataSourcePlugin
interface. Here's a brief overview:
id
: A unique identifier for the plugin.name
: Display name of the plugin.description
: Brief description of the plugin.icon
: File name of the icon representing the plugin.category
: Category of the data source (e.g., database, API).dataSourceConfig
: Configuration form of the data source.queryConfig
: Configuration for data source queries.validateDataSourceConfig
: Validation logic for the data source configuration.run
: Execution logic for data source queries.
To develop a data source plugin, you'll mainly focus on:
- Defining the basic information of the plugin.
- Defining the configuration form of the data source.
- Implementing the validation logic for the configuration.
- Defining the action list for data source queries.
- Implementing the execution logic for actions.
For detailed information on how to develop a plugin, refer to our detailed Guide.
For information on how to contribute to Lowcoder, please view our Contribution Guide.
Before publishing your plugin, it's crucial to test it thoroughly. Follow these steps:
- Ensure your plugin is added to the plugin list in
src/plugins/index.ts
. - Start the
node-service
server by executingyarn dev
. - Modify the backend configuration using the provided commands in the testing section of the guide.
Feel free to modify this readme according to your needs. If you have any questions or need further assistance, don't hesitate to reach out!
yarn build
yarn start