PlacementPrep

ejs setup krne k liye

  1. ejs install npm i ejs
  2. configure ejs app.set("view engine" , "ejs");
  3. ek views folder bnana h
  4. usme ejs files banao
  5. send ki jagha render kro.

static files setup krna :> means images, stylesheets, frontendjs setup krna;

  1. create a folder called public
  2. create 3 folder inside it images, stylesheets, javascripts.
  3. configure the express static
  4. understand the path

authentication

types :-

  • statefull -> which maintains state or data on server side.
  • stateless -> which has no state.