To run the project, you would use the following command:
npm run start
To build the project, you would use the following command:
npm run build
To test the project, you would use the following command:
npm run test
To lint the project with StandardJS, you would use the following command:
npm run lint
I made a change to one of the routes, specifically DELETE: /order_items/:orderId. I apologize for any inconvenience in advance. The modification was necessary due to multiple order items in the olist_order_items_dataset.csv dataset sharing the same value in the order_id column. I adjusted the route to /:productId/:orderId/ to query the database with a compound ID (productId, orderId). This prevents the deletion of multiple order items that share the same orderId. Once again, I apologize for any inconvenience caused.
mongoimport.exe --uri "{DB_URL}" --db simpleBKs --collection {COLLECTION_NAME} --type csv --headerline --file {CSV_FILE_PATH}