n8n-nodes-starter/README.md

45 lines
857 B
Markdown
Raw Normal View History

2019-10-03 08:53:03 +02:00
# n8n-nodes-starter
![n8n.io - Workflow Automation](https://raw.githubusercontent.com/n8n-io/n8n/master/assets/n8n-logo.png)
2019-10-03 08:53:03 +02:00
Example starter module for custom n8n nodes.
2021-12-09 16:18:06 +02:00
## Try it out
2022-02-01 14:02:19 +02:00
[N8N documentation on custom nodes](https://docs.n8n.io/nodes/creating-nodes/create-n8n-nodes-module.html)
Clone the n8n-nodes-starter repository and execute:
2021-12-09 16:18:06 +02:00
```
2022-02-01 14:02:19 +02:00
# Install dependencies
2021-12-09 16:18:06 +02:00
npm install
2022-02-01 14:02:19 +02:00
# Build the code
2021-12-09 16:18:06 +02:00
npm run build
2022-02-01 14:02:19 +02:00
# "Publish" the package locally
2021-12-09 16:18:06 +02:00
npm link
```
2022-02-01 14:02:19 +02:00
Create an N8N installation and add the n8n-nodes-starter to it:
2021-12-09 16:18:06 +02:00
```
2022-02-01 14:02:19 +02:00
# Create an N8N installation
2021-12-09 16:18:06 +02:00
cd ..
mkdir n8n_install
cd n8n_install
npm init
npm install
npm install n8n
2022-02-01 14:02:19 +02:00
# "Install" the locally published module
2021-12-09 16:18:06 +02:00
npm link n8n-nodes-starter
2022-02-01 14:02:19 +02:00
# Start n8n
2021-12-09 16:18:06 +02:00
npx n8n
```
2019-10-03 08:53:03 +02:00
## License
[Apache 2.0 with Commons Clause](https://github.com/n8n-io/n8n/blob/master/packages/nodes-base/LICENSE.md)
2021-12-09 16:18:06 +02:00