Node Express question

Hi Guys,

Quick question. Do i always need to use .ejs file when working with nodejs express? or i can use .html file also.

Hi,
I’m not quite sure what your asking but will try to answer :slight_smile:
express is a javascript framework so it must be written in a js or ts however you can use your html to gather payload body data from a user.

I’m not sure but i cant see how nodeJS and express would work with a html file using script tags i believe they can only be read by browsers so nodeJS would not know what to do with it but i might be wrong . imo best practice would be to setup nodeJS with express and use npm to run the express ‘server’

hope that helps