4Geeks lets you manage a coding school.
npm install n8n-nodes-4geeks
Install dependencies
npm install # or you can use yarn
Compile the files to update the dev instance
npm run build
Run the dev n8n instance
npm run dev
`
Adding new triggers
To add a new trigger, create a TypeScript file in nodes/BreathecodeTrigger/triggers/ that exports a BreathecodeEventDefinition object.
Each trigger must define an event name (the one we create in our API), label, description and if you want filters, add properties and a filter function that returns true when the webhook should be processed.
Optionally, include a transform function to modify the payload before it's sent to the workflow. Finally, import and add your trigger to the array in triggers/index.ts.
Seeing your changes in our n8n instance
They must be pulled from the Digital Ocean instance's droplet launch console.
`
Pull the changes
cd n8n-docker-caddy/n8n-nodes-4geeks
git pull origin main
Rebuild the docker image
cd ..
docker compose build n8n
docker compose down
docker compose up -d
``