etsy-coding-challenge

所属分类:Leetcode/题库
开发工具:JavaScript
文件大小:6KB
下载次数:0
上传日期:2018-02-06 21:42:33
上 传 者sh-1993
说明:  编程面试的编码任务。
(Coding assignment from programming interview.)

文件列表:
index.js (1171, 2018-02-07)
lib (0, 2018-02-07)
lib\etsy_listingcompare.js (2905, 2018-02-07)
lib\etsy_listingget.js (1648, 2018-02-07)
lib\etsy_listingstore.js (2315, 2018-02-07)
lib\etsy_listingtrack.js (772, 2018-02-07)
package.json (468, 2018-02-07)

## Etsy Coding Challenge > Please write an application that when given a list of Etsy Shop IDs as a parameter does the following: > * Synchronizes the shop's listings to several files (one per shop ID), outputting what has been added or removed since the last run. > Guidelines: > ---- > * All work is done in a git repository > * A readme with instructions on how to run the application > * Use any language you want, with any libraries you want > * Take as long as you'd like to finish this exercise > * If you have time, or want to show off, include tests! ## Instructions 1. Download or clone this repository. 2. Run "npm install" 3. Run program from the command line "node index.js" ## Options ``` Usage: node index.js [options] Application to track etsy store listing changes Options: -V, --version output the version number -k, --apikey Etsy API Key -i, --ids Comma Separated Store IDs -s, --save Update listings in database -h, --help output usage information Examples: $ node index.js --help $ node index.js -h ``` ## Example Execution To execute the program ``` > node index.js -k xxxxxxxxxxxxxxxxxxxxxxxx -i 17048633,17048***7,17048693,17048703,17048745 --save Shop ID 17048693 # modified listing 591892355 # modified price - 24.99 => 21.99 Shop ID 17048703 No Changes since last sync Shop ID 17048745 No Changes since last sync Shop ID 17048***7 - removed listing 578384448 Shop ID 17048633 - removed listing 591891271 # modified listing 591890547 # modified price - 14.99 => 9.99 # modified quantity - 9 => 1 # modified listing 578082938 # modified views - 1 => 3 ```

近期下载者

相关文件


收藏者