If I put my entire appβs code in /imports
, does this mean I donβt have to use the typical folder structure of client
, server
, etc, since I can control exactly when things are loaded and where?
you donβt necessarily need it
You still need these folders if to bootstrap the loading of the import
files.
Right, that makes sense. So in /server
there could be a file that does something like:
import '../imports/startup/server';
And that folder structure looks like:
βββ startup
β βββ client
β β βββ routes.js
β βββ server
β βββ fixtures.js
β βββ index.js
β βββ publications.js
β βββ security.js
β βββ slingshot-directives.js
β βββ triggers.js
Yep, thatβs how Iβve been doing it!
1 Like