The objective of this porting project is to create a Node.js program that reads data…
- User
The objective of this porting project is to create a Node.js program that reads data from an excel sheet or csv file, converts it into an array of objects and saves it in a MongoDB collection with the transaction name as the collection name (eg., bills, receipts, patients, lab observations, etc..) Once the data is validated for authenticity and do some pre processing like converting dates from excel or csv dates to proper format (yyyy-mm-dd Hh:Mm:Ss) and skipping any documents that have already been inserted in collection. Then the program then loops through the saved data from collection, makes an API call to a specified endpoint with each object as the request body, and updates the corresponding MongoDB document with the response received. Also we need to make sure if a document is processed we should not process it again. Every document will contain a transactionType and transactionNumber as mandatory. we need to record the time it take to process the record, so that we can generate the reports on how much time it took to port the data.
keep the code and file structure very generic and scalable and robust Storing all configurations in a config.json file Creating an API interface for uploading excel/csv files and processing them Creating an API for editing the uploaded data and re port it again Creating an API for user signup, signin and forgot/change password Storing the session ID, uploaded user id, uploaded file name, file size, and other details in a collection called "interface logs" Validating the user credentials and generating a session ID for every request Restricting the API access only to registered users Keeping track of which session IDs are linked to a particular user Storing whether user is active or not Overall, the project provides a complete solution for uploading excel/csv files, processing the data, and updating it in the database with the help of external APIs. It also includes various functionalities and security features to make it more robust and scalable.
PLease suggest the scalable and robust project structure for the same
- Assistant