Thursday, 2 January 2020

Web Application Challenge

So i'm working on a coding challenge that wants me to write a web application that contains a file input box that accepts csv files. I was able to write some code that read the sample csv file back to me:​const csv = require('csv-parser');const fs = require('fs');fs.createReadStream('codesample.csv').pipe(csv()).on('data', function(data){if ('file_name ==')console.log(data);}).on('end',function(data){console.log('Read finished');});​The challenge wants the web application to read the sample csv and output the number of values in the column labeled “file_name” that begin with an odd-numbered letter (e.g. A=1, B=2, C=3, etc.), output the number of unique values in the column labeled ”title” and finally output a nested view of the “file_name” using the “parent_id” column all displayed in HTML.My NodeJS skills are pretty basic so i'm having a really hard time finding any approach for this kind of task. If anyone could help out that would be awesome!

Submitted January 02, 2020 at 11:27PM by SmoothPiccolo

No comments:

Post a Comment