nextjs-referral-system-
Budget: $10 – $30 USD
We need a Nextjs developer, who can complete a referral system that will allow users to refer their friends. It's an existing app that uses Nextjs as the full-stack framework and MongoDB/Mongoose as the database. Kindly review what tasks have been completed & what tasks are yet to be done.
COMPLETED TASKS:
- we create the refName, refEmail, refId, & refBy of the user0default user
- we create a dynamic route with the refId
- user1 enters their refName, refEmail, & refId to register via the user0 refId
- user1 visits /rewards/refId to view their refVisits, refEntries, & refEarnings
YOUR TASKS:
- we calculate & update the db with the refBy & refStat of user1
- we send the /refId & /rewards/refId routes of user1 to their refEmail
refBy > this is the refId of the existing user that referred the new user
refVisits > if someone visits a user's dynamic route, we'll add 1 to the field
refEntries > if someone submits a user's form, we'll add 1 to this field
refEarnings > if someone submits a user's form, we'll add 1.50 to this field
HERE'S THE VIDEO OF THE APP:
https://www.loom.com/share/ee9e42104a64463ba9098e241bb8303f?sid=fd8c6beb-74fb-418f-8fdc-a2f89777cb2d
Cheers,
K
COMPLETED TASKS:
- we create the refName, refEmail, refId, & refBy of the user0default user
- we create a dynamic route with the refId
- user1 enters their refName, refEmail, & refId to register via the user0 refId
- user1 visits /rewards/refId to view their refVisits, refEntries, & refEarnings
YOUR TASKS:
- we calculate & update the db with the refBy & refStat of user1
- we send the /refId & /rewards/refId routes of user1 to their refEmail
refBy > this is the refId of the existing user that referred the new user
refVisits > if someone visits a user's dynamic route, we'll add 1 to the field
refEntries > if someone submits a user's form, we'll add 1 to this field
refEarnings > if someone submits a user's form, we'll add 1.50 to this field
HERE'S THE VIDEO OF THE APP:
https://www.loom.com/share/ee9e42104a64463ba9098e241bb8303f?sid=fd8c6beb-74fb-418f-8fdc-a2f89777cb2d
Cheers,
K