- calling okta api reliably
- "do what i want" magic in api consumer
- polling log trigger
- waiting for HTTP 429 in case of timeouts
- retrieving all results by using multiple calls (like for example here)
- do a couple of blog posts about n8n code internals ("how to do X") which would have saved me ... a couple of hours
- node development workflow
- VS code debugging of nodes
- n8n data structures
- nice source code references for ...
- trigger nodes: pushcut (pushcut trigger node, see also this community post
- polling nodes: toggl, clockify
- somewhat more complex transform nodes including rather complex options dependencies: sendgrid
- Set up dev environment (one-time action)
- change into your source code folder ;)
mkdir n8n-dev ; cd n8n-dev ; npm install n8n ; cd ..
- (NOTE: different directory now!)
git clone git@github.com:n8n-io/n8n-nodes-starter.git n8n-nodes-MYNODE
cd n8n-nodes-MYNODE
- update n8n dependencies by editing
package.json
(after doingnpm outdated
), thennpm install
(again) - set all the package.json metadata and update the
LICENSE.md
file
- start developing: repeat ...
- in
n8n-nodes-MYNODE
:npm run build ; npm link
- in
n8n-dev
:npm link n8n-nodes-MYNODE
node_modules/n8n/bin/n8n
- NOTES
- (see here)
- Important: For each written node you have to add it to the
package.json
file undern8n.nodes
.
- in
git clone
the starter repository. Unfortunately it is horrendously outdated and you have to update the dependencies. The easiest way is:
npm install
npm outdated
- and note the current versions of n8n core and workflow- set the dependencies of
n8n-core
andn8n-workflow
to the "current" version shown bynpm outdated
- re-preform
npm install
- set the dependencies of