The most difficult part of our project's development was defining our 1:M relationship between listings and auctions. At first, we had the listing holding an array of auction ObjectIds but found this to be quite cumbersome, so instead we had each auction object holding a reference to one listing ObjectId. This solution proved successful, and we were able to easily pull auction data for a listing when need be.
We learned quite a bit about async functions and how they are used with Mongoose. Through our testing, we explored many new ways to interact with the database that we had not previously done in our in-class lessons or homework. Additionally, we learned a lot about the collaborative Git process, specifically working with Node modules in Express apps, and how easy it is to redownload packages to our local repositories to ensure everyone is up to date.
For future features, in addition to the aforementioned images, we are quite interested in post expiration. Down the line, we will be exploring middleware that checks the listings to see how long they have been up for, and once they have been up for three days they will automatically be listed as sold, and twenty four hours after that, the listing will be auto deleted.
The most difficult part of our project's development was defining our 1:M relationship between listings and auctions. At first, we had the listing holding an array of auction ObjectIds but found this to be quite cumbersome, so instead we had each auction object holding a reference to one listing ObjectId. This solution proved successful, and we were able to easily pull auction data for a listing when need be.
We learned quite a bit about async functions and how they are used with Mongoose. Through our testing, we explored many new ways to interact with the database that we had not previously done in our in-class lessons or homework. Additionally, we learned a lot about the collaborative Git process, specifically working with Node modules in Express apps, and how easy it is to redownload packages to our local repositories to ensure everyone is up to date.
For future features, in addition to the aforementioned images, we are quite interested in post expiration. Down the line, we will be exploring middleware that checks the listings to see how long they have been up for, and once they have been up for three days they will automatically be listed as sold, and twenty four hours after that, the listing will be auto deleted.