84 Commits (be2aa34303124b3c9e0bc347d417994a718fce7b)
 

Author SHA1 Message Date
Onja b0cde36f53 Refactor form on the home page to include options for selecting columns to export 1 year ago
Onja 17b9fe4f2e Add main layout template and index page template, and update the index route to render the index page with a form 1 year ago
Onja 40cac0c6c8 Add TemplateService class to handle rendering templates and layouts 1 year ago
Onja fcac5503a0 Add support for handlebars as the view engine in the application, with a new configuration parameter for extension name 1 year ago
Onja 4bbcc60d2c Refactor code to include headers and set response headers for CSV download in the / route 1 year ago
Onja 561654e698 Update consoleSubscriber.js to include the filtered headers in the parse.start event log message 1 year ago
Onja 56b4caf42f Refactor processRow method to handle columns filtering and improve error handling 1 year ago
Onja 1134f361cb Remove commented out code for parsing data and logging it in consoleSubscriber.js 1 year ago
Onja df08062ffb Refactor column validation in File class to emit parse error event when columns are invalid 1 year ago
Onja 8524d995f3 Refactor download progress logging to display downloaded size in megabytes instead of percentage 1 year ago
Onja 543c12fdff Add exclusion for public/csv/* in .gitignore file 1 year ago
Onja 93795e29d1 Add event listener for 'download.started' with the filepath and length information 1 year ago
Onja d733230901 Update basedir path in constants.js to resolve file path correctly 1 year ago
Onja fb9e493da6 Refactor log messages for download and parsing events to be more concise and remove unnecessary information 1 year ago
Onja 78bd3a2147 Refactor basedir to use path.join for better readability and maintainability 1 year ago
Onja 03f3c74d27 Refactor error handling in File class to emit download.error event and reject promise 1 year ago
Onja 6816d76fa6 Handle error when parsing file from URL in index.js 1 year ago
Onja e6e5e4a614 Refactor consoleSubscriber.js to use a log function to log event names and data 1 year ago
Onja 1a71a7c256 Add consoleSubscriber module to app.js 1 year ago
Onja b9270b2a06 Add consoleSubscriber.js file with event listener functions for various events and their corresponding actions 1 year ago
Onja ac33d20776 Remove unnecessary call to super() in the constructor of the File class 1 year ago
Onja f408226daa Refactor the File class to use a separate event emitter module for better code organization and separation of concerns 1 year ago
Onja e9a15d9834 Refactor FileService class to use event emitter module for better code organization and readability 1 year ago
Onja 7213927988 Create a new file "eventEmitter.js" in the "src/services" directory, which exports a singleton instance of the EventEmitter for the entire application 1 year ago
Onja 5648746546 Add index and count to parse.data and parse.end events in File model 1 year ago
Onja 50997abf9f Add FileService class to parse CSV data from a given URL and return a stream for download 1 year ago
Onja 6db619d3c4 Refactor the code to load the project path from the config/constants.js file and fix a bug in the parse method where it returns false instead of rejecting the promise with an error message when columns are invalid 1 year ago
Onja bd75953797 Add "dev" script to package.json for nodemon 1 year ago
Onja ca33b38dc9 Refactor the processRow method to generate a new file with the columns and return the exported row 1 year ago
Onja 997aee6cce Rename file.js to src/models/file.js 1 year ago
Onja 0f17664964 Rename File.js to file.js and make changes to the parse method to read a file and return a stream 1 year ago
Onja 7be61d264d Refactor File.js to include generating a separate filepath for the generated file 1 year ago
Onja d1052f693a Refactor File class to include download progress and error handling 1 year ago
Onja 39e38ce379 First commit 1 year ago