I need to make a small, but useful feature for members of my APP. They should be able to refer friends to become member of the app, and I want to be able to show them how many they referred and how many of them signed up to the app. Example:
Member name (who is inviting)
Signed up: 12
The member who invites fills out a form on the frontend with the friends' phone number and/or email and we notify the friend via sms and email that they have been invited by this friend to sign up. If you know a way they can invite on Facebook/Instagram, please implement that as well.
There should be a login for the member who invites and in that secure page we show a list of who they invited and who signed up.
I also want to show a list of TOP 50 inviting members so the member can see if they are the best at inviting friends. This list is monthly. The list will not show names, for privacy, but the member should see their own name on the list. Example:
1. Member 34
2: Member 65
3: Member 4
4: Member 97
5: Member 114
6: Clint Westwood (member name who is inviting)
7: Member 523
8: Member 32
9: Member 86
And so on.
The database we use is Firestore, so you should be able to interact with that in these ways:
1. Write to/update the DB.
2. Read from DB.
3. Calculate sums from the DB.
4. Make a relation between lists so we know that this invited friend is now signed up as a member.
5. Search the DB so the member can see if they are inviting someone who is already a member.
The design for the pages will be delivered to you, made in AdminLTE, unless you have to make it yourself in .js or another language.