-
Notifications
You must be signed in to change notification settings - Fork 3
Allows to have a Meteor app that is server only #411
Comments
Hey @theodorDiaconu isn't that what the meteor |
@aliogaili the problem is that if I use packages that inject client code, I still have Meteor client when I don't need it. For example collection2 from aldeed does this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed it has not had recent activity. |
But this is a problem that remains unsolved, unhandled and without an official response. |
@theodorDiaconu one possible workaround (although not 100%) is to start from So in your package.js you could add: This will more or less achieve what you want. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Same issue here, meteor with DDP is a great powerfull micro service backend... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Stepping back a bit, I think the request here it allow Meteor to act as API backend only. Perhaps we've a skeleton apps that allow bootstrapping DDP API and GraphQL API with account features (and collection/mongo server only if DDP is used). If my understanding is correct, it is possible today to have Meteor act as backend only with minimal flag, but the issue is with third party packages injecting client code. So in API mode flag, we could have a feature to disable any client code injection. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed it has not had recent activity. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed it has not had recent activity. |
I'm moving this to the feature requests repository so we could understand how many people would use Meteor this way. This is definitely possible but I'm not sure how many people would use like this. Meteor is already very open to many different options but we need to be careful on adding more options, specially if we don't see enough market for it. I'm not saying that is the case, let's see. |
Not directly answering your question, but might help others who is looking for:
|
Reviving this - We are using A server-side only application (not so micro microservice) with minimal features, based on the minimum that is available: .meteor/packages
We have also removed the client entry points in the package.json: ...
"meteor": {
"mainModule": {
"server": "server/main.js"
},
"testModule": "tests/main.js"
},
... And yes this is a working app already ❤️ However, since we are also then adding some packages like @dr-dimitru if have read the help info on the build command via
So this command should be renamed IMO to I think this is a valid use-case when Meteor wants to evolve into the direction of being a great tool for building microservices. |
@jankapunkt Does this help? |
@zodern we should probably get a core solution for this. |
Tja package from @zodern works actually great for this. However I still think the |
I know that this request may be a bit weird, but I would like to simply remove all JS exported by Meteor packages from the build process for client only. I still want to keep the npm modules. Will that be possible ? Maybe using a custom compiler ?
I just want a meteor-free client but I want to have a fullstack framework.
In the same breath (a bit unrelated to main question) I would like to completely stop DDP from allowing external connections (via SockJS also) -- Is there anyway to do that too ?
The text was updated successfully, but these errors were encountered: