Saturday, 16 November 2019

I have recently started to learn node and wanted to ask community these questions.

I went through couple of online tuts and all I found was res.send() example, it simply echos in the browser but it doesn't really sends a complete HTML page, how do we do that? Is it even possible without using any template engine?Unlike PHP node doesn't use Apache server. Everyone we do has to be done from scratch like setting routes for every single endpoint, do you set routes for every endpoint manually? I found there is a way to show static content by using express.static so serving users static files with this do you route every other endpoint?I learnt PHP in past and node seems very different to me. In raw PHP we simply don't have to do so much things that we have to do in node. I thought it would be easier than PHP but it's not any tips here?

Submitted November 16, 2019 at 05:53PM by Ok-Use

No comments:

Post a Comment