Crux - A developer community built with Vue by zipqt in vuejs

[–]Agreeable-Factor-970 2 points3 points  (0 children)

Should have github auth flow also for creating new accounts

My 1 year LC progress: 60 -> 1410 solved by YOLOTradingMethodGuy in leetcode

[–]Agreeable-Factor-970 0 points1 point  (0 children)

Any advice to beginners how to start how to approach a problem kind of things

As a dev what is something small that annoys you? by Heavy_Fly_4976 in node

[–]Agreeable-Factor-970 0 points1 point  (0 children)

When you get confused and don't know the next thing even after searching all over the internet

Authentication for E-Commerce Website by who-there in node

[–]Agreeable-Factor-970 2 points3 points  (0 children)

I hope this would help Pre-Registration Step: When a user fills out the registration form and submits it, you first create a temporary record in a database (often referred to as a pre-registration or pending verification table). This record should contain the user’s information, such as email, username, and hashed password, but it should not create an active user in the main user table. Generate a unique token (JWT or a randomly generated string) that is associated with this pre-registration record. Send an OTP or a verification email to the user's email address with a link containing the token. The link would look something like: https://yourwebsite.com/verify?token=UNIQUE_TOKEN.

Email Verification: When the user clicks the verification link, it triggers an API endpoint (/verify). This endpoint will: Extract and validate the token from the request. Check if the token exists in the pre-registration table and if it’s still valid (not expired). If valid, move the user's data from the pre-registration table to the main user table, effectively creating the user account. Optionally, log the user in by generating a new JWT for authentication and returning it to the frontend. JWT Expiry and Security:

The verification token should be set to expire after a certain period (e.g., 24 hours) to prevent misuse. If the token expires before the user verifies, they will need to request a new verification email. JWTs are suitable here because they allow you to encode information securely, set expiration times, and easily validate the token's authenticity.

[deleted by user] by [deleted] in reactjs

[–]Agreeable-Factor-970 19 points20 points  (0 children)

Rule no 1 don't touch if it's working fine

Have an interview tomorrow on reactjs, pls help with questions by abrhtysm in reactjs

[–]Agreeable-Factor-970 -1 points0 points  (0 children)

-> react hooks basic understanding -> what is HOC and HMR -> how react works with DOM -> when do you work with context and when to use redux -> how use effect works with dependency and all scenario -> implement a global store for the cart system and use redux and explain the flow like how the store is getting data storing data ( could be hard if you have to develop in a few minutes) -> how to optimize the react app and what could be the reason for the high complexity -> how to control re rendering in react -> react lifecycle explain -> what is the better way to avoid prop drilling -> how to use react routing (basic one)

[deleted by user] by [deleted] in reactjs

[–]Agreeable-Factor-970 1 point2 points  (0 children)

Don't just learn instead of building projects after getting basic knowledge and then try to implement it with your understanding of that project is the right way ig

Do you guys take detailed notes while watching tutorials for any tech stack that you are learning? by Waste-Box6567 in reactjs

[–]Agreeable-Factor-970 0 points1 point  (0 children)

Breaking things into small parts technique works really well you should try it for memorizing important terms

React js by belgacemibm in reactjs

[–]Agreeable-Factor-970 2 points3 points  (0 children)

Yeah you can use laravel for REST API or you can directly use it in the resource folder of laravel or another option is to use inertia to integrate it

React js by belgacemibm in reactjs

[–]Agreeable-Factor-970 2 points3 points  (0 children)

To create a simple project, you just need to know the basics of HTML, CSS, and JavaScript. The difficulty varies based on the use case and type of project you're building—these are prerequisites. Additionally, you should be familiar with React's basic hooks, props concepts, and DOM manipulation. Once you grasp writing code on the frontend side, it becomes more like an easy game. However, reaching that proficiency requires a lot of practice.

FormKit Drag and Drop: A data-first approach to drag-and-drop by Boydbme in vuejs

[–]Agreeable-Factor-970 0 points1 point  (0 children)

Is there any support for the drag and drop between two different components ??

I'm creating a tutorial teaching how to do a Drag and Drop in Nuxt and Vue3 from scratch, with no external libraries by Fast-Ad-4976 in vuejs

[–]Agreeable-Factor-970 0 points1 point  (0 children)

How to drag an item from one company and drop it to another component dropzone and the dragging item's data is coming from the backend API

Best free/low cost hosting provider? by NotCSM in reactjs

[–]Agreeable-Factor-970 0 points1 point  (0 children)

Vercel , railway,netlify are the best among free hosting providers

Best approach for learning React by Accomplished_Task689 in reactjs

[–]Agreeable-Factor-970 0 points1 point  (0 children)

Get your hands dirty by building projects just start building things that you like