Job Portal

11/02/2025 13:05 
moment package :- calculate date and give how many times back it is posted w.r.t to present 

k - converter :- this package insures that all the thousands will come under K or like that 


Quill :- rich text editor 



18/02/25  16:34

mistakes I have done which cause me waste 2.5 days
1. user.js instead of User.js
2. you need to import all the things before deploying it or else you will get error 
3. in the logs of vercel you can see why your backend or any code is not working 
it should send as home page (API is working in my case) like this things then only its mean its running 

4. rgrok is used for tunnelling like what we deployed that is instead of going with long cut it will go in tunnel (short cut ) you have to download and set int PATH of the environment variable  



19/02/25  10:20 am

What is context in react ?? 

it' type of container where all the states and props can be hold and provided which ever component wants it acts like a global variable in react 
for accessing that we user useContext hooks which is necessary for using that 

  • createContext(): Creates a new context.
  • Provider: Wraps components and provides the value to them.
  • useContext(): Hook to access the context value in functional components.

This is useful for avoiding prop drilling, where you have to pass props through multiple nested components.

  • FormData is useful when you need to send multipart data, especially for file uploads.

https://chatgpt.com/share/67b565c4-7d3c-8006-acbd-720fc03647a3
for understanding better 


axios.post --> we are sending data client to backend to db

axios.get --> we are taking data from db to backend to client 



20/02/25     11 :34 
clerk provides token by useAuth hook



19 :33

for this project you have to understand who is taking object and who will take string then only you won't get error otherwise you will trapped into the loop as I am currently now ?!?!



user not found 
not user found for this application 



















Comments

Popular posts from this blog

Edtech backend class 4

BD Class 4 Data Association

Authentication and autherization class 1