Given a list of customer records in file customers.txt, this program outputs to a new file output.txt the names and ids of all customers located within 100km of Intercom's Dublin office.
Besides this very document (README.md), all other files in the root directory are configuration files for running either the program itself or other development tools.
/resourcescontains the input file/srccontains all source code/testcontains all test code
This program is written in Typescript. In order to run it you will need the following two programs:
Check if you have them already installed on your machine:
npm -v
node -v
If not, installing these programs is easy. Depending on your operating system, you may need to choose between a Node installer and a Node version manager before proceeding with installation. I suggest that you follow this Guide to set up your environment in an optimal way.
When you are in the root directory of this project, run:
npm install
npm run build
When you are in the root directory of this project, run:
npm start
When you are in the root directory of this project, run:
npm test
When you are in the root directory of this project, run:
npm run coverage
Interactive HTML reporters on code coverage can be found in the newly generated directory /coverage.