Data Processor Solution with Node.js for Revieve technical test #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GUIDELINE.md
Introduction
This document provides instructions on how to set up and run the script for this Node.js project.
Implementation
Code Optimization
In the solution code, there are also some code technique being used for a better performance and to ensure that we can handle a large datasets:
Prerequisites
Ensure you have the following installed on your system:
Installation
Clone the repository (if you haven't already):
```sh
git clone https://github.com/aditioagungnugroho/devops-interview.git
```
Navigate to the project directory:
```sh
cd devops-interview
```
Switch branch to the feature branch:
```sh
git checkout feature/tech-test-solution
```
Install the dependencies:
```sh
npm install
```
Running the Script
Production Mode
To run the data processing script:
```sh
node index.js
```
Project Structure
Testing
To run the tests:
```sh
npm test
```
Linting
To check for linting errors:
```sh
npm run lint
```
Additional Notes
data/directory contains all necessary data files required by the script..eslintrc.jsonand.prettierrcfiles as needed.Troubleshooting
If you encounter any issues:
npm install.README.mdfor additional context and instructions.