feat: setup entire login and course purchase setup
Resolves #169
This pr currently adds:
- [x] Ability to signup in house
- [x] Hash Password
- [x] In house sign in
- [x] Ability to purchase a course in house
- [x] Change the schema for storing purchases
- [x] Integrate Razorpay
In future:
- [x] ~Verify the user with some method~ Not required for v0
hey @hkirat, how should I proceed with mail verification? I can implement it my way but what would suit you the most???
No need to verify emails for v0
hey @hkirat, Do we need to support login with appx as a fallback method?
Also, just to be sure, content is still comming from appx right?
No all content is in house currently as well appx gives us
- authentication (they store user information)
- Let us know which user has purchased which course - ref - https://github.com/code100x/cms/blob/main/src/utiles/appx.ts#L15
oh, makes a lot sense. Thanks
https://github.com/code100x/cms/assets/76874341/a27839ce-12b4-415c-a390-6154c35f09d1
@hkirat ready for review. Could you check this out?
cc: @siinghd
As this is v0 a lot of things to be improved. LMK your thoughts on this and I shall continue.
PR already getting a lot large and messy.
@hkirat hoping it comes to your notifs
Will review it asap
Just clarifying a few things I have left a bunch of TODOs which can be their own issue. Simple enough to fix not totally necessary but can make the app a lot better and performant not totally sure thooo
too many merge confs, gonna close for now
checking