Hi there Meteor community!
I’m working for a local enterprise and I’ve been developing two applications for them both using Meteor.
First is a formerly simple website for showcasing products.
Second is an internal application for the enterprise to manage a lot of its internal processes (sending stuff to workshops, creating delivery routes, checking merchandise stock, creating documents, etc).
Before me coming onboard, all this was managed through a single 3rd party application with an Oracle db. So, even now when there are two applications, there is a lot of “common data” in that external DB (which I don’t manage but from where I get all the information I need).
Now the necessity has come to share information between web & application. For example: A web client submits a new cart request, they want to see notifications in their internal app. An employee marks a cart request as ready to pickup, they want to showcase a notification to the client. And many other things.
Since the enterprise products are a common ground for both applications, and so is the information of clients/users/documents and so on, I thought unifying the mongo db was the best thing to do and the easiest way to share information between the apps.
However, it feels unsecure regarding the user side of things. I’d be at ease if the db used to authenticate users would still be independent, and there would be no possibility at all that a web user could sign in into the app and vice-versa. But I’m not sure on how to achieve that (first implementation is a pre-login valildation method). What would you recommend in this regard?
And what are your general opinions/recommendations on having two applications with a single db ?
Your input will be most valuable.