- Place the json-file you wish to process in the /data folder.
- Sign up with Discogs and create your personal api key and secret.
- Create a config.json file in the following format and place it in the root of the project:
(config.json)
{
"apiUrl": "https://api.discogs.com",
"authKey": "[...]",
"authSecret": "[...]",
"inputFile": "./data/[...].json",
"rateLimit": {
"requestsAllowed": 55,
"timeWindow": 60000
},
}
- Replace with appropriate values for
authKey
,authSecret
andinputFile
. - Run
npm install
- Run
node index.js
Additional configuration options:
limit
valuesinteger
will limit how many items from the input file you are processing.offset
valuesinteger
will skip the first given number of items from the input file you are processing.verbose
valuestrue|false
will give you more logging output.