Skip to content

Instantly share code, notes, and snippets.

View eternicode's full-sized avatar

Andrew Rowls eternicode

View GitHub Profile
All modules templates I've seen were not suited for code sharing
between client/server in case the module has dependencies.
This template will only work on server-side if module's dependencies
are in node_modules (installed with npm) on server side and are
available without any path in require.
In case the dependencies are part of the application, their paths
will be different in nodejs and in browser,
so some adaptation will be required to use correct dependencies paths.