Welcome to Lowcoder Node Service
Lowcoder Node Service is a powerful tool to develop and host data source plugins using TypeScript.
Getting Started
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
git@github.com: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
What is a Data Source Plugin?
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.
Overall Definition of a Plugin
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.
Developing Data Source Plugins
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.
All plugins reside in the directory server/node-service/src/plugins
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.
Testing Your Plugin
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-serviceserver 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!
Run the Node Service in Production
yarn build
yarn start