Write a REST API using Node.js (any framework) which does the following:
- Takes a large CSV file as an input,
- Parses it and saves each row as a record in the database on a predefined data model and table
- API needs to have proper validation in place
- Use of any open-source module is allowed
- PostgresSQL needs to be used as the database
- Sample data set to be used for testing and model creation -> http://eforexcel.com/wp/wp-content/uploads/2020/09/5m-Sales-Records.zip
Instructions to submit the code:
- Create a public repo on Github
- Format the code as per standards
- Push the final codebase for the app on the repo and reply back to us with the repo URL