# Running this demo

:loudspeaker: Node.js 8.6 or higher is [required](http://node.green/), this demo uses a couple shiny new JS features like `{... }`

1. Make sure you run `npm run bootstrap` in the root folder to setup the dependencies
2. Create and register a [new application](https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/accessing-arcgis-online-services/).
3. Replace values in [config-template.js](/demos/batch-geocoder-node/config-template.js) and rename to `config.js`
   1. `"clientId"`: ArcGIS ClientId
   2. `"clientSecret"`: ArcGIS ClientSecret
   3. `"csv"`: csv path
   4. `"output"`: output csv path
   5. `"fieldmap"`: `object` that maps CSV fields to [address fields](https://esri.github.io/arcgis-rest-js/api/geocoder/IAddressBulk/) __or__ `string` that points to a CSV field with single-line addresses
4. `npm start`

Sample Restaurant Inspections adapted from a DOHMH dataset available [online](https://data.cityofnewyork.us/Health/DOHMH-New-York-City-Restaurant-Inspection-Results/xx67-kt59/data)
