Quick Start (Install & Run)
Get up and running with the DocuWriter.ai community n8n nodes in a few simple steps.
Prerequisites
- π₯ Node.js β₯ 18.10
- π¦ pnpm (or npm/yarn)
- π§ n8n CLI or Docker installation
- π A clone of this repo:
git clone https://github.com/DocuWriter-ai/n8n-nodes-docuwriter-ai.git
Installation & Build
- Change into the project directory
cd n8n-nodes-docuwriter-ai - Install dependencies
pnpm install - Compile to
dist/pnpm run build
{
"commands": {
"npm": "npm install",
"yarn": "yarn",
"pnpm": "pnpm install",
"bun": "bun install"
}
}
Running Locally
- n8n CLI
# From project root n8n start --tunnel - Docker
docker run -it --rm \ -v ~/.n8n:/home/node/.n8n \ -v $PWD/dist:/home/node/custom \ -p 5678:5678 \ n8nio/n8n
n8n Registration
To make n8n load the compiled nodes and credentials, wire them in your n8n config. You can either:
- Drop files into your
$HOME/.n8n/credentialsand$HOME/.n8n/nodesfolders - Reference them in a custom
config.json
Example ~/.n8n/config.json
{
"nodes": [
"dist/nodes/DocuWriter/DocuWriter.node.js",
"dist/nodes/DocuWriterTrigger/DocuWriterTrigger.node.js"
],
"credentials": [
"dist/credentials/DocuWriterApi.credentials.js"
]
}
Files to Register
| Type | Path | Purpose |
|---|---|---|
| π Credential | dist/credentials/DocuWriterApi.credentials.js | Defines the docuWriterApi credential type |
| π Action Node | dist/nodes/DocuWriter/DocuWriter.node.js | Implements the DocuWriter.ai action node |
| π¨ Trigger | dist/nodes/DocuWriterTrigger/DocuWriterTrigger.node.js | Implements the Generation Created webhook node |
Note: After updating your config, restart n8n to pick up new nodes.
With these steps, you can now start building n8n workflows that leverage DocuWriter.ai to autoβgenerate documentation, tests, comments, UML diagrams, and retrieve generation metadata. π
Updated