Hey guys!
The reference code i gave you last week was kinda dumb and overcomplicated. you can look at the useUser hook I made through wrapping the clerk hook here: https://github.com/naman0r/tandemcode/blob/main/apps/web/src/hooks/useUser.ts
Hope this gives you a little more insight. The service architecture from the previous reference code I gave you was pretty correct, I would encourage you to try to understand that and implement it that way. Instead of me giving you a bunch of files to create, could you guys reply to this github issue with a list of files (services, hooks, etc) that you guys think you need to create? This is a good way to think critically about the problems we are trying to solve. Also reply to this issue with the google doc of backend endpoints you guys will need (make sure anyone can edit it. Also send it in the frontend+backend messages gc).
Sorry been pretty swamped with prep and homework this week, but feel free to reach out to me at any time if you feel like you are lost, but there is no 'formula' to a frontend, you just need to come up with a well designed, modular architecture that fits your needs, and think about the future and design it in a way that best allows for the easiest changes to be made in the future.
@IoannaDamianov @anyakrishnamony13
Hey guys!
The reference code i gave you last week was kinda dumb and overcomplicated. you can look at the useUser hook I made through wrapping the clerk hook here: https://github.com/naman0r/tandemcode/blob/main/apps/web/src/hooks/useUser.ts
Hope this gives you a little more insight. The service architecture from the previous reference code I gave you was pretty correct, I would encourage you to try to understand that and implement it that way. Instead of me giving you a bunch of files to create, could you guys reply to this github issue with a list of files (services, hooks, etc) that you guys think you need to create? This is a good way to think critically about the problems we are trying to solve. Also reply to this issue with the google doc of backend endpoints you guys will need (make sure anyone can edit it. Also send it in the frontend+backend messages gc).
Sorry been pretty swamped with prep and homework this week, but feel free to reach out to me at any time if you feel like you are lost, but there is no 'formula' to a frontend, you just need to come up with a well designed, modular architecture that fits your needs, and think about the future and design it in a way that best allows for the easiest changes to be made in the future.
@IoannaDamianov @anyakrishnamony13