Please enable JavaScript.
Coggle requires JavaScript to display documents.
node.js - Coggle Diagram
node.js
-
-
Restaurant example
If you cook everything on table in restaurant
Need to bring everything out, i.e to browser, exposing business logic and security.
Will be very time consuming, in website it will lead to long load time
better alternative is that server(kitchen) takes the ingredient from database(larder)
execute the code on server (make the dish)
serve it on the client (restaurant table)
-
-
EJS
you can send oneline of html in res.send,() or multiple lines in res.write()
what happens when you want to send whole html page, these methods will be tedious to implement.
-