Say we have a social media app were users login and make posts. The user data is published so we can see individual user profiles. How do we go about making a system that adds users as friends, like in facebook; or followers , like Twitter?
Three approaches so far.
First approach was to find an online tutorial of someone creating a social media app, like Facebook or Twitter. All the ones I came across were using older versions of Meteor before 1.2. Or were sing autopublish and insecure. I like to start my mornings doing a Meteor tutorial or video, but it looks like I am running out of advanced ones.
Tried looking on atmosphere for packages, but couldnt find one with a tutorial explaining how to use it.
Plan C being make my own package from scratch. In my mind the hardest part is making buttons, but I guess they can be text buttons and later get a designer to make better ones.
So lets say the collection is called friendRequests. We need to take the id of user that is being sent a request, id of user sending, and its status. Status being pending or accepted.
UserB pushes a request button on userA page. A document is created looking something like this.
If accepted the status is changed to A. If denied the document is just deleted.
Is this how other people do it?
I havent started coding. Just planning things out.