Seller Integration - Node.js and GraphQL
This example project allows you to simulate the main operations undertaken by a Seller Integration - this is a good place to start to learn the basics.
less than a minute
Overview
In this Node.js project we use the Marketplacer Seller API to:
- Ingest seller products into Marketplacer
- Retrieve seller orders for those products from Marketplacer
- Dispatch (ship) those products to the customers that bought them
This example performs the additional step of generating valid test products for us to ingest (step 1 above). It does this by interrogating the category structure of the Marketplacer instance and determining valid product attribute sets.
Solution Components
Component | Description |
---|---|
Language | JavaScript |
Runtime | Node.js (v20+) |
GraphQL Client | N/a (Fetch API) |
Marketplacer API | Seller API (GraphQL) |
Webhooks used | N/a |
Data Storage | JSON & text files |
Dependencies | Faker |
Getting Started
The code for this project can be found here, along with a detailed readme that helps you to get up and running quickly.
Companion Video
We also have a companion video that takes you through initial application set up, as well as running through all 4 of the example use-cases
You can find the video in the seller video collection here.