Finding associated data has never been easier with this back-end sample API that mimicks popular social media platforms.
This app reflects the back-end side of social media apps: Users can create a friend list, add their thoughts and have reactions to others' thoughts in a NOSQL database using Express and mongoose ODM. Demonstrated with MongoDB Compass and Postman.
This challenge does not include a deployed application. Instead, a screen-recorded video is submitted alongside the github repo link.
Video link: https://drive.google.com/file/d/1UB6qB8Fz7ZMcLKRw_VjJcDwgSqVeXZAs/view
- Understand how to delete a user's associated data (like thoughts) when deleting an entire user. MongoDB does not have a SQL equivalent to ON DELETE CASCADE, which would be really handy here. Something to look into for the future.
- Instead of seeding Postman manually, debug/refactor the js files in the seeds folder to randomly seed any number of users the developer wishes.
Below are screenshots of Shoot the Breeze: A Social Network API
Collaborators:
Firmin Saint-Amour (Instructor)
List of resources used:
https://mongoosejs.com/docs/guide.html
https://mongoosejs.com/docs/schematypes.html
https://mongoosejs.com/docs/validation.html#built-in-validators
https://www.name-generator.org.uk/quick/
https://nodejs.org/api/process.html#event-exit
https://www.geeksforgeeks.org/node-js-process-exit-method/
https://www.mongodb.com/docs/manual/reference/method/db.collection.deleteMany/
https://expressjs.com/en/guide/routing.html
https://mongoosejs.com/docs/populate.html
No licenses (default copyright laws apply).