Description
n8n-nodes-kargo-entegrator
This is an n8n community node. It lets you use Kargo Entegratör API in your n8n workflows.
Kargo Entegratör is a Turkish cargo integration platform that allows you to manage shipments across multiple cargo companies from a single interface.
n8n is a fair-code licensed workflow automation platform.
Table of Contents
- Quick Start
- Development Setup
- Docker Environment
- Installation
- Operations
- Credentials
- Scripts
- Compatibility
- Usage
- Resources
- Version History
- License
Quick Start
Prerequisites
- Node.js >= 20.15
- npm or yarn
- Docker (optional, for containerized development)
Local Development
-
Clone and Install
git clone https://github.com/gurmesoft/n8n-nodes-kargo-entegrator.git cd n8n-nodes-kargo-entegrator npm install -
Build the Project
npm run build -
Start Development
npm run dev
Docker Development (Recommended)
-
Quick Start with Docker
# Build and start development environment npm run dev:docker # Access N8N at http://localhost:5678 # Username: admin # Password: admin123 -
View Logs
npm run dev:docker:logs -
Stop Environment
npm run dev:docker:stop
Development Setup
Environment Requirements
- Node.js: >= 20.15
- TypeScript: ^5.8.2
- n8n-workflow: Latest (peer dependency)
Project Structure
n8n-nodes-kargo-entegrator/
├── credentials/ # API credentials configuration
├── nodes/ # Node implementations
│ └── KargoEntegrator/
│ ├── *.node.ts # Node logic
│ ├── actions/ # Node actions
│ └── resources/ # Node resources
├── dist/ # Built files (generated)
├── docker-compose*.yml # Docker configurations
└── package.json # Project configuration
Development Workflow
- Make Changes: Edit TypeScript files in
nodes/orcredentials/ - Build: Run
npm run buildto compile TypeScript - Test: Use Docker environment or local N8N instance
- Format: Run
npm run formatto format code - Lint: Run
npm run lintto check code quality
Docker Environment
Three Docker configurations are available:
1. Development Environment (Recommended)
npm run dev:docker
# or
docker-compose -f docker-compose.dev.yml up -d
- Services: N8N + PostgreSQL + Node development container
- Features: Hot reload, debugging, persistent data
- Access: http://localhost:5678
2. Simple Environment
docker-compose -f docker-compose.simple.yml up -d
- Services: N8N only (SQLite database)
- Use Case: Quick testing
- Access: http://localhost:5678
3. Production Environment
docker-compose up -d
- Services: N8N + PostgreSQL
- Use Case: Production deployment
- Access: http://localhost:5678
Docker Commands
# Start development environment
npm run dev:docker
# View logs
npm run dev:docker:logs
# Restart services
npm run dev:docker:restart
# Stop environment
npm run dev:docker:stop
# Build and restart with live reload
npm run dev:live
Access Information
- N8N Web Interface: http://localhost:5678
- Username: admin
- Password: admin123
- PostgreSQL: localhost:5432 (production) / localhost:5433 (development)
- User: n8n
- Password: n8n123
- Database: n8n
Scripts
| Script | Description |
|---|---|
npm run build |
Build TypeScript and copy icons |
npm run dev |
Watch TypeScript files for changes |
npm run dev:live |
Development with auto-restart |
npm run dev:docker |
Start Docker development environment |
npm run dev:docker:logs |
View Docker logs |
npm run dev:docker:stop |
Stop Docker environment |
npm run dev:docker:restart |
Restart Docker services |
npm run format |
Format code with Prettier |
npm run lint |
Lint code with ESLint |
npm run lintfix |
Fix linting issues automatically |
Installation
Follow the installation guide in the n8n community nodes documentation.
Community Nodes (Recommended)
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-kargo-entegrator - Agree to the risks of using community nodes
- Select Install
Manual Installation
npm install n8n-nodes-kargo-entegrator
Operations
Shipment
- Create: Create a new shipment
- Get: Retrieve shipment details
- Create Return: Create a return shipment
Customer
- Update: Update customer information
Cargo
- Get All: Get all available cargo companies
- Get: Get specific cargo company details
Credentials
To use this node, you need:
- Sign up for an account at https://app.kargoentegrator.com
- Get your API key from the dashboard
- Configure the credentials in n8n:
- API Key: Your Kargo Entegratör API key
- Base URL: https://app.kargoentegrator.com/api (default)
Compatibility
Tested against n8n version 1.0+.
Usage
Creating a Shipment
- Select "Shipment" as the resource
- Choose "Create" as the operation
- Fill in the required fields:
- Receiver name, phone, and address
- City and district
- Cargo company ID
- Package details (weight, count, description)
Managing Returns
Use the "Create Return" operation to create return shipments with the same interface as regular shipments.
Getting Cargo Companies
Use the "Cargo" resource to get information about available cargo companies and their IDs for use in shipment creation.
Resources
Version History
0.1.0
- Initial release
- Support for shipment creation, retrieval, and PDF generation
- Support for return shipment management
- Cargo company and warehouse information retrieval
- Webhook trigger for shipment status changes
- System settings access
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For support, please contact destek@kargoentegrator.com or visit our website.