Skip to content

Volusion2Dev/volt-integrations-bigtoysdirect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Volt integration examples

Find example integrations with ⚡️Volt by Volusion here, mostly using webhooks that fire from Volt to your Google Cloud Functions.

Google Cloud Functions is part of Google's Free Tier, providing 2 million requests per month for free. 😲 And the way we're writing our code using FaaS doesn't lock you into Cloud Functions either… if you later decide you want to run this code on docker, or using Google Cloud Run, or even outside of Google in any Knative-based environment, have at it. But for this repo we're going to keep it simple, cheap, and minimal maintenance.

File structure is based on Cloud Functions Starter Kit

Install

Clone this repo to your local machine, then in your terminal run:

npm install

Create a new file called .env.yaml where you'll set the environment variables with your API Keys

VOLT_API_KEY: 9fduAnbishA0N9BXlNQ6zC:9kaub81gaVl1oJfXiIbal8

👆 this is not a real key, replace with your own

Install the Google Cloud SDK if you don't already have it. Create a new project in console and enable Cloud Functions API for that project. Set your terminal to use that project.

Usage

npm start

Each file in /functions is an endpoint. Feel free to create more, or less by:

  1. Duplicating one of those example files in /functions
  2. Referencing that new file in your index.js

Example: ShipStation

This integration exists at /functions/toShipStation.js

Integrate Volt by Volusion to ShipStation. This sample is intended to do the heavy lifting of the mapping exercise, and provide the framework for communicating with both the Volt and ShipStation APIs. It's all open source, giving you the flexibility to customize it for your business. If you don't like free, flexible code, you can always pay for a Zapier point & click Volt (V2) --> ShipStation integration instead.

Set your ShipStation environment variables in the .env.yaml file

SHIPSTATION_API_KEY: 8bha9aca512444058405e0ae29a9f716
SHIPSTATION_API_SECRET: 4191eb59c9d74de1a91b8wh1ap12a9ve

👆 these are not real keys, replace with your own

Deploy

To deploy all functions, run:

npm run deploy

Your functions will be accessible on Google Cloud Functions, at a URL such as:

https://us-central1-volt-oms-integration.cloudfunctions.net/helloWorld

Where us-central1 is the Google Cloud Region you picked and volt-oms-integration is what you named your Google Cloud Project and helloWorld is what you named your file in this project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.3%
  • Shell 7.7%