Why using views directory and not public in node project

Hi,
Is it important to put index.html in [views] directory or can I put all my files (including index.html) in [public] directory changing node to serve this index files ?

Christophe

you can put it in any directory, sure - as you said, you’d just need node to send the correct file location. typically we put these files in a “views” folder to separate it from actual static files like js and css which we keep in “public”. it’s purely organizational.

Well.
Thank you for your answer, and congratulation for your work !
Glitch is a tool I have dreamed about it and you do it :slight_smile:

1 Like