/data-migrator-code-sample

node.js code sample

Primary LanguageJavaScript

description

Script was used to migrate article videos to new version of a website

workflow

  1. Clean up destination database
  2. Read video data from source database
  3. Process data:
  • For YouTube - extract video id
  • For Brightcove - convert ids to ids from new video hosting platform
  1. Store data in destination database

technologies

Node.js with Async/Await

knex library for MySQL and SqlServer

cheerio

JSON