Hi,
I’m new to the Parse server and first of all I want to say that this is a really great package. I’ve tried many other systems, but to me Parse is the most powerful of them all. Great work!
I am currently in the learning phase and unfortunately I do not understand a few basic principles of how these can be implemented. Unfortunately there are hardly any tutorials to understand the basics.
To study, I’m trying to build a social shopping app. In this app you can have friends like on Facebook. Send friend request, etc. What I need is some help with the scheme.
First, the user class must be divided into private and public. When the user class is updated, the public class is updated.
My PublicUser class has the schema
{username, user (pointer: user), friends (relation)}
Then I have a class FriendRequest.
Cloud code controlled
{ACL (pointer: sender, pointer: receiver), sender(pointer), receiver(pointer), accepted}
Now every user can query the PublicUser data and send friend requests. Is this a right way to implement user relationships?
The users can sell their products. It should be possible to sell them publicly or just to friends. Here I am having difficulty creating the scheme. How do you build up the authorizations for such a case? Do I have to add roles? But then that would be an incredible number of roles, since a new role has to be created for each product. Or is it possible to set ACLs on relations?
My idea was this scheme but I don’t know how to handle the authorization.
{title, description, price, user(pointer), relation with authorization ??}
I hope someone can clarify me.