Skip to content

Finding associated data has never been easier with this back-end sample API that mimics popular social media platforms. Swiftly demonstrated with MongoDB Compass and Postman in the below walkthrough video.

Notifications You must be signed in to change notification settings

miss-mad/shoot-the-breeze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 

Repository files navigation

Shoot the Breeze: A Social Network API

Finding associated data has never been easier with this back-end sample API that mimicks popular social media platforms.

Table of Contents

Description

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.

Deployed Application

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

Future Improvements

  • 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.

Usage

Below are screenshots of Shoot the Breeze: A Social Network API

Shoot the Breeze screenshot 1 Shoot the Breeze screenshot 2

Credits

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://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#spread_in_object_literals

https://mongoosejs.com/docs/populate.html

https://www.mongodb.com/community/forums/t/how-to-delete-a-specific-nested-subdocument-completely-from-an-document/100219/3

License

No licenses (default copyright laws apply).


About

Finding associated data has never been easier with this back-end sample API that mimics popular social media platforms. Swiftly demonstrated with MongoDB Compass and Postman in the below walkthrough video.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published