@daouy/n8n-nodes-carbone
v0.2.0
Published
n8n nodes for Carbone integration
Downloads
7
Maintainers
Readme
n8n-nodes-carbone
Đây là một gói node tùy chỉnh cho n8n để tích hợp với Carbone API.
Tổng quan
Gói này cung cấp các node để tương tác với Carbone API theo thiết kế lifecycle, cho phép bạn:
- Tạo và quản lý template
- Tạo báo cáo từ template và dữ liệu
- Kiểm tra trạng thái báo cáo
- Tải xuống báo cáo đã tạo
Cài đặt
Cài đặt cục bộ
Đi đến thư mục n8n của bạn
cd ~/.n8nCài đặt gói node
npm install n8n-nodes-carboneKhởi động lại n8n
Cài đặt trong Docker
Thêm dòng sau vào Dockerfile của bạn:
RUN cd /usr/local/lib/node_modules/n8n && npm install n8n-nodes-carboneSử dụng
Sau khi cài đặt, bạn sẽ thấy node "Carbone Lifecycle" trong danh sách node của n8n.
Thiết lập Credentials
- Tạo credential mới kiểu "Carbone API"
- Nhập URL API của Carbone (ví dụ: https://your-carbone-domain.com/api)
- Nhập API Key của bạn
Các thao tác có sẵn
- Create Template: Tải lên và đăng ký template mới
- Generate Report: Tạo báo cáo từ template và dữ liệu
- Get Report Status: Kiểm tra trạng thái của quá trình tạo báo cáo
- Download Report: Tải xuống báo cáo đã tạo
Phát triển
Cài đặt môi trường phát triển
# Clone repository
git clone <repository-url>
# Cài đặt dependencies
npm install
# Build
npm run build
# Link để phát triển cục bộ
npm linkCấu trúc dự án
n8n-nodes-carbone/
├── credentials/
│ └── CarboneApi.credentials.ts
├── nodes/
│ └── Carbone/
│ ├── CarboneLifecycle.node.ts
│ └── carbone.svg
├── package.json
└── tsconfig.jsonGiấy phép
npm run build npm pack --dry-run npm publish
