You can usually put static public files in a subdirectory, such as app/public , which can serve HTML, CSS, JS or otherwise. If your application code is in server.js , you will leave server.js in the application folder or something that is not specifically provided to the public. If you do not explicitly determine where the static files are served, then there is no problem if you do not have another web server such as apache serving all the app files.
source share