@moltin/importer

2.2.0 • Public • Published

Import Moltin Products

Pre-requisites

  1. NodeJS (10.0.0 or newer)
  2. Npm (6.0.0 or newer)
  3. Redis

🛠 Setup

npm install -g @moltin/importer
importer

⛽️ Usage

Once the import app has started, you can navigate to http://localhost:4567 in your web browser where you will see a neat web UI for observing the import. This UI runs using https://github.com/bee-queue/arena.

To begin the import, simply GET localhost:4000

If you are re-running an import, you should run redis-cli FLUSHALL on a new command line tab in order to make sure any old jobs are flushed from Redis.

⚡️ Internals

Two express apps are automatically started for you:

  1. Producer (port 4000). This is responsible for parsing your CSV and creating jobs for each of the products within it

  2. Consumer (port 3000) The consumer is responsible for reacting to incoming jobs. If they are jobs from the producer, it will check if those products exist already in Moltin. It will raise a new job for each product according to the result (update or insert). It will then process these new jobs itself and run the actual addition or updates in Moltin for you.

Readme

Keywords

Package Sidebar

Install

npm i @moltin/importer

Weekly Downloads

1

Version

2.2.0

License

MIT

Unpacked Size

26.7 kB

Total Files

14

Last publish

Collaborators

  • bsteinbach.ep
  • samblacklock
  • itaccounts-ep
  • ben.durmishllari
  • moltinbot
  • patrick.yau
  • epjames
  • tomkdickinson
  • carl_moltin
  • sgoswami
  • kchengep
  • kculalaep