(demo.coffee:1:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
```
--------------------------------
### Creating an Axios Instance
Source: https://github.com/lowcoder-org/lowcoder/blob/main/node_modules/axios/README.md
Explains how to create a custom Axios instance with predefined configurations.
```APIDOC
## axios.create([config])
### Description
Creates a new Axios instance with a custom configuration, allowing for reusable settings like baseURL and headers.
### Parameters
#### Config Options
- **baseURL** (string) - The base URL for requests made with this instance.
- **timeout** (number) - The number of milliseconds before the request times out.
- **headers** (object) - Default headers to be sent with requests.
### Request Example
```javascript
const instance = axios.create({
baseURL: 'https://some-domain.com/api/',
timeout: 1000,
headers: {'X-Custom-Header': 'foobar'}
});
```
```
--------------------------------
### Install combined-stream
Source: https://github.com/lowcoder-org/lowcoder/blob/main/node_modules/combined-stream/Readme.md
Install the combined-stream module using npm.
```bash
npm install combined-stream
```
--------------------------------
### Cancel a Setup Intent
Source: https://github.com/lowcoder-org/lowcoder/blob/main/server/node-service/src/plugins/stripe/stripe.spec_old.txt
Cancels a SetupIntent object. This is useful when a setup intent is in a state that requires payment method, confirmation, or action, and you wish to abandon the setup process.
```APIDOC
## POST /v1/setup_intents/{intent}/cancel
### Description
A SetupIntent object can be canceled when it is in one of these statuses: requires_payment_method, requires_confirmation, or requires_action.
Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an error.
### Method
POST
### Endpoint
/v1/setup_intents/{intent}/cancel
### Parameters
#### Path Parameters
- **intent** (string) - Required - The ID of the SetupIntent to cancel.
### Request Body
(No request body is specified in the source for this operation)
### Response
#### Success Response (200)
(Schema not provided in source)
#### Response Example
(No example provided in source)
```
--------------------------------
### Install Lowcoder SDK Dependencies
Source: https://github.com/lowcoder-org/lowcoder/blob/main/client/packages/lowcoder-comps/README.md
Navigate to the lowcoder-sdk directory and build the SDK before developing extra components.
```bash
cd client/packages/lowcoder-sdk
yarn build
```
--------------------------------
### Install Arg with Yarn
Source: https://github.com/lowcoder-org/lowcoder/blob/main/node_modules/arg/README.md
Install the 'arg' package using Yarn.
```bash
yarn add arg
```
--------------------------------
### Build Lowcoder Plugins with Maven
Source: https://github.com/lowcoder-org/lowcoder/blob/main/server/api-service/README.md
Navigate to the api-service directory and run this command to build the project and all lowcoder-plugins, which is a prerequisite for starting the server.
```shell
cd server/api-service
mvn clean package
```
--------------------------------
### TypeScript Demo: Compile and Run
Source: https://github.com/lowcoder-org/lowcoder/blob/main/node_modules/@cspotcode/source-map-support/README.md
Commands to install dependencies, compile TypeScript with source maps, and run the compiled JavaScript.
```bash
$ npm install source-map-support typescript
$ node_modules/typescript/bin/tsc -sourcemap demo.ts
$ node demo.js
```
--------------------------------
### Example Project Structure for Type Roots
Source: https://github.com/lowcoder-org/lowcoder/blob/main/node_modules/ts-node/README.md
Illustrates the expected directory structure when using `typeRoots` to manage custom type definitions.
```text
/
-- tsconfig.json
-- typings/
-- /
-- index.d.ts
```
--------------------------------
### Install lowcoder-sdk with npm
Source: https://github.com/lowcoder-org/lowcoder/blob/main/client/packages/lowcoder-sdk/README.md
Install the lowcoder-sdk package using npm.
```bash
npm install lowcoder-sdk
```
--------------------------------
### Configure Netlify Build Settings
Source: https://github.com/lowcoder-org/lowcoder/blob/main/client/README.md
Example netlify.toml configuration for the Lowcoder client. This file should be placed in the 'client/' directory.
```toml
[build]
base = "client"
command = "yarn workspace lowcoder build"
publish = "client/packages/lowcoder/build"
```
--------------------------------
### Install Lowcoder Node in Docker
Source: https://github.com/lowcoder-org/lowcoder/blob/main/docs/workflows/n8n-integration.md
Install the Lowcoder Community Node for n8n when running n8n in a Docker container. Use the mounted \"/custom\" folder for installation.
```bash
mkdir ~/.n8n/custom
cd ~/.n8n/custom
npm install n8n-nodes-lowcoder
```