ejs setup krne k liye
- ejs install npm i ejs
- configure ejs app.set("view engine" , "ejs");
- ek views folder bnana h
- usme ejs files banao
- send ki jagha render kro.
static files setup krna :> means images, stylesheets, frontendjs setup krna;
- create a folder called public
- create 3 folder inside it images, stylesheets, javascripts.
- configure the express static
- understand the path
- statefull -> which maintains state or data on server side.
- stateless -> which has no state.