gravityapi

A Gravity API node for n8n

Package Information

Downloads: 1 weekly / 4 monthly
Latest Version: 1.1.0
Author: Raghav Mittal

Available Nodes

Documentation

Setup Local

  • build nodes/GravityApi/api.json everytime the schema is getting updated.
  • run npm install
  • run npm run build
  • run npm link

link with n8n custom packages:

  • Go to ~/.n8n

  • check for custom directory.

    • If found run npm link n8n-nodes-gravityapi
    • If not found
      • In ~/.n8n directory run

        mkdir custom 
        cd custom 
        npm init
        npm link n8n-nodes-gravityapi`
        
  • For deploying custom node to docker please follow the given documentation.
    https://community.n8n.io/t/building-custom-nodes/58148/5

Docker Setup

following is docker configuration which was used to deploy it on Ec2 server

  • build nodes/GravityApi/api.json everytime the schema is getting updated.
  • run npm install
  • run npm run build
  • run npm link

following is the Dockerfile:

USER root

# Install the package
COPY /home/ec2-user/n8n_data/custom/node_modules/n8n-nodes-gravityapi /home/node/.n8n/custom/node_modules/n8n-nodes-gravityapi
RUN npm install -g axios
RUN npm install -g fs-extra
RUN npm install -g form-data

USER node

Discussion