Closed Khanhtran47 closed 2 years ago
what to save in db ?
@ctuanle ừ favorite film, film đang xem, account info, account setting (theme, color...)
nên dùng kiểu database nào nhỉ? Mongodb, redis, firebase, hay là mysql, postgresql :v
@ctuanle này thì t chịu nơi, m thạo cái chi hay muốn test cái mới thì cứ quẩy thôi 😂
@ctuanle https://github.com/clerkinc/remix-bossa-nova-stack auth mình xài supabase cho db với của cái ni đk
@Khanhtran47 okay, dùng cho mỗi auth thôi hay sao ?
@ctuanle ừ kiểu để đăng nhập với get thông tin user trước, với có cái database để test, xài cho hết api của remix 😅 kiểu cái loader nơi root ấy, mình load thông tin cơ bản của user rồi xài đc cả cho toàn app luôn, k cần redux gì cả, phê vãi
@Khanhtran47 okey, làm issue này trước hay đợi app hoạt động ổn định rồi mới làm cái này ?
@ctuanle m lm giờ cũng đc, tối về t lm cái dark mode rồi sau m thử thêm cái theme ng dùng chọn vô nơi thông tin user chọn thử m cứ nghiên cứu đi rồi sau cho t xem code học :v
@Khanhtran47 okei
@Khanhtran47 Hiện tại dùng clerk ở dev thì khỏe (#42). Còn nếu muốn dùng production thì phải có domain riêng (theo t đọc thì vậy) để trỏ về domain của clerk mới được.
@ctuanle rứa k xài clerk đc à m 🥲 xài cái ni đk https://github.com/sergiodxa/remix-auth
@Khanhtran47 cũng được đều k thấy nó chỉ so sánh mật khẩu chỗ mô nơi, hoặc t k hiểu session based auth :v
@ctuanle có tuto để xem lm theo cho dễ hiểu k hậy, nhiều cái lạ vại 😅
@ctuanle https://github.com/mitchelvanbever/remix-auth-supabase :v k bt có chạy đk t search thấy có nhiều tuto lắm :v
@Khanhtran47 cái này có vẻ hợp lí hơn cái trước :v
@Khanhtran47 well, nói vậy ai dám dùng lâu dài :v
@ctuanle t search remix auth with supabase ra mấy cái tuto ni
@Khanhtran47 ừm để t xem thử
@ctuanle bên example của remix cũng có auth với supabase https://github.com/remix-run/remix/tree/main/examples/remix-auth-supabase
Maybe using back for creating db for user :v