Trying to build three different apps to serve different kinds of users in a single project. For example, three different users : admin, author and learner (very light weight app with just few screens). The layout of app and screens will be different for all three users, but will share same MongoDB database.
Would like to have only specific app JS code loaded to browser based on specific user, but with Meteor not sure how to structure code or configure to achieve it loads only specific JS code. Also not sure how to build device app for only specific kind of user.
Thinking to use following folder structure to organize the code, but how can I config Meteor to load only specific folder’s code based on layout / router config or some other technique.
Folder structure could be
common/lib, common/server, common/client, common/public
admin/lib, admin/server, admin/client, admin/public
author/lib, author/server, author/client, author/public
learner/lib, learner/server, learner/client, learner/public