Giter VIP home page Giter VIP logo

printful-api-variation-syncing-node-app's Introduction

Printful Syncing Automation App

A Node.js application that automates the process of finding un-synced listing variations from a Printful store and syncing them with the correct Printful product/image.

Features

  • Fetches listings with zero synced variations from Printful and generates a template spreadsheet.
  • Allows the user to upload a completed template spreadsheet.
  • Automatically syncs the variations on Printful based on the uploaded spreadsheet.
  • Provides a simple user interface in the browser using Handlebars.
  • Packaged into a portable executable file using PKG, allowing the client to run the app on their PC as needed.

How it Works

The application provides two main functionalities:

  1. Creating a Template Spreadsheet: Initiated by a GET request to the /createTemplate endpoint. This fetches listings with zero synced variations from Printful and generates a template spreadsheet. The spreadsheet is saved in the root directory of the application.

  2. Syncing Product Variations: Initiated by a PUT request to the /syncPrintful endpoint. The user can upload a spreadsheet with product variations to be synced to Printful. The application reads the spreadsheet, and for each row, it sends a request to Printful to sync the product variation.

The user interface is rendered using Handlebars. After each operation, a success or failure message is displayed on the page.

Running the App

The application is packaged into a portable executable file using PKG. This allows the client to run the app on their PC as needed.

Dependencies

The application uses the following dependencies:

  • body-parser
  • dotenv
  • exceljs
  • express
  • hbs
  • multer
  • node-fetch

Note

The Printful API key is stored in a .env file which is ignored by Git.

printful-api-variation-syncing-node-app's People

Contributors

daveybuilder avatar

Watchers

 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.