Git Product home page Git Product logo

shopify-erp's Introduction

Shopify Third-Party Integration with Webhooks, Admin API and a Node.js Middleware

Add credentials.json and .env with Shopify Admin API Credentials and run "npm start". Use ngrok to get publicly available endpoint.

Youtube Video Tutorial

Local installation

Node.js

Developed and tested using Node.js version 18.5.0

Node.js version managed via ASDF

To install and use the correct version of Node.js, run the following command from the project folder:

$ asdf install

Install project dependencies

$ npm install

ngrok

Sign up for ngrok. We need ngrok so that our Google Sheet as well as our Shopify Webhooks can talk to our local App running the middleware.

Install the ngrok binary and then add your auth token:

$ ngrok config add-authtoken <your token>

Google Docs

Make a copy of the "ERP Demo" Google Sheet. Once you have your own copy navigate to Google Cloud and enable the Google Sheets Api service. Generate and download your API access keys in the form of a JSON credentials file. Ensure the client email address has Editor access to the Sheet.

Rename the downloaded credentials file to credentials.json and place it in the project root.

Environment setup

$ cp .env.example .env

Input your environment settings into .env

Running

To run with hot-reloading:

$ npm run dev

To run without hot-reloading:

$ npm run start

Creating the proxy

Once the App is running, connect the ngrok proxy with:

$ ngrok http 3000

Replace port 3000 with your specified port number if you have changed this in your .env file.

Running this command will return the Forwarding URL. Copy this URL

Connecting the Google Sheet

With the "ERP Demo" Google Sheet open, navigate to Extensions > Apps Script. Edit the value of SHOPIFY_MIDDLEWARE_URL to be your Ngrok Forwarding URL from the step above. Save and close the Script.

shopify-erp's People

Contributors

markusvoigt avatar joncarlmatthews avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.