https://github.com/maxpou/intercom-test
https://github.com/maxpou/intercom-test
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/maxpou/intercom-test
- Owner: maxpou
- Created: 2018-02-14T22:59:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-15T13:16:26.000Z (over 8 years ago)
- Last Synced: 2025-03-05T13:52:13.619Z (over 1 year ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/maxpou/intercom-test) [](https://standardjs.com) [](https://github.com/facebook/jest)
# Intercom Test: Customer Records
## Installation & running
Requirements: [Node >= 7.10.1](http://node.green/#ES2017-features-async-functions) (usage of async/await functions) and NPM.
1. `npm install`: install dev dependencies
2. `node bin/main.js`: execute program *with defaults arguments*
## Commands
* Main endpoint came with severals options:
```bash
$ node bin/main.js --help
Usage: main [options]
Options:
-f, --file [fileUrl] customer file url (default: https://gist.githubusercontent.com/brianw/19896c50afa89ad4dec3/raw/6c11047887a03483c50017c1d451667fd62a53ca/gistfile1.txt)
-d, --distance [fileUrl] distance (default: 100)
-h, --help output usage information
```
* `npm run lint`: lint code according to [standard.js style](https://standardjs.com/)
* `npm test`: run test suite