This tries to implement FR-TEAM-EVAL .
To run the program:
-
Install the required dependencies
npm install
oryarn
-
Usage
node index.js <path_to_team.csv_file> <path_to_scores.csv_file> [path_to_output_file.csv]
when reading from CSVsnode index.js <teams_table> <scores_table> --sql=<database name> [path_to_output_file.csv]
when reading from SQL tables.
Outputs a teamScores.csv file to the current directory or to the file specified as the argument.
- Uses
csv
npm module. Instead need to implement a native parser.
2. Uses (Using bluebird)
3. Make the package more modular. Separate I/O and operations.
4. Handle invalid entries.bluebird
for promises and async. Can either try to use async/await
or make the operations synchronous(not reccomended).
5. Write basic test
See CONTRIBUTING.md file.