Project Structure
suggest changeVersions
There is no single required layout.
Introduction
A Node.js project's structure depends on preference, architecture, and how modules are loaded. Keep server code separate from browser code. Browser code is public and is usually minified before it is sent. Server code should expose an API for create, read, update, and delete.
Remarks
A browser bundle (for example Browserify) and a front-end library (for example Vue) change that layout only in detail. Put the built client code in a public directory. A build task can produce it.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents