This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Parse = require('parse/node'); | |
var fs = require('fs'); | |
var request = require('request'); | |
var moment = require('moment'); | |
Parse.initialize("<app-id>", "<secret-key>"); | |
/*********************************************** | |
* The idea is to download all images, 100 at | |
* a time. we'll write a recursive function to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jsonfile = require('jsonfile'); | |
var fs = require('fs-extra'); | |
var moment = require('moment'); | |
var _ = require('lodash'); | |
var attr = require('dynamodb-data-types').AttributeValue; | |
var foodFile = "parse-data/food.json"; | |
var foodJson = jsonfile.readFileSync(foodFile); | |
var foodResults = foodJson.results; | |
var foods = []; |