This project was born out of an interview, where I was asked if I knew how to parse large chunks of data using Node.js. At the moment I didn't know how to do it, but after reading some documentation and experimenting I figured it out.
This app runs the fs module creating a Stream to read a .csv file, and parses it into a .json file. Then there's this small express.js server that makes the data available to use in a client application.
- clone the repo
npm i- use the
npm run generate-jsoncommand to generate your file. Make sure to change the name of thefilevariable inside theindex.jsfile, depending on what do you want to parse. - use the
npm run devto have your server running and go to localhost:4200/ to view your data.
If you want to use similar kind of data to the one In this app, you can find it here.
This is just a proof of concept and a proof to myself that I can learn and create these types of projects if I just put my mind on it.
If you're reading this, future-self or whoever you are, don't quit! You got this 😎