https://github.com/eldimious/filestage_test_challenge
Solution to filestage's test challenge
https://github.com/eldimious/filestage_test_challenge
Last synced: 7 months ago
JSON representation
Solution to filestage's test challenge
- Host: GitHub
- URL: https://github.com/eldimious/filestage_test_challenge
- Owner: eldimious
- Created: 2019-04-11T09:19:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T22:31:41.000Z (over 3 years ago)
- Last Synced: 2025-04-06T13:24:09.811Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 632 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# filestage_test_challenge
For the old js version look at the branch [javascript](https://github.com/eldimious/filestage_test_challenge/tree/javascript)
### Quick Start ###
In order to run the service, you have to run:
```shell
node index.js src/data/file1.txt src/data/file2.txt
```
where:
- `src/data/file1.txt`,
- `src/data/file2.txt`
are the **paths** for the files that you want to read. I am passing them to the service as **nodejs args** using `process.argv`.
If we do not pass any file path, I return error: `Need to add files paths as arguments`.
### Tests ###
Also, I wrote some tests too. In order to be able to run them you need to:
```shell
npm install
npm run test
```
### Output ###
The service will return as console's output a string like: `The MVP is the player with nickname: nick3 and total rating: 82` or it will throw an error.