Meteor 1.7 without MongoDB
Clash Royale CLAN TAG#URR8PPP
Meteor 1.7 without MongoDB
I'm trying to run a Meteor project, where I don't use Accounts nor any other Mongo Collection, and therefore would like to run the project without a Mongo DB server.
I've researched and found a few resources, mostly very old, none of which work with a current 1.7.x version of Meteor.
Anyone out there successfully made a recent Meteor version work without Mongo DB?
Both actually... that is, I want to run the server without having to connect to a mongo db server. Neither client nor server am I using mongo collections...
– Ricardo Pesciotta
Aug 6 at 8:20
1 Answer
1
You can remove mongo by looking through your packages for things that depend on mongo
or mongo-dev-server
with meteor list --tree
mongo
mongo-dev-server
meteor list --tree
On a fresh app this means removing:
mongo
meteor-base
autopublish
by running:
meteor remove mongo meteor-base autopublish
It turns out meteor-base
has some important stuff in it that we want, so we want to add back in:
meteor-base
meteor
ddp
webapp
by running:
meteor add ddp webapp meteor
Note that you will lose hot code reloading on the client as that also depends on mongo :(
It works, thanks very much. I noticed that after this change, the package alexwine:bootstrap-4 is failing to import the bootstrap files into the client. Are you aware of any known issue with packages when applying these changes? Would there be perhaps any missing package to be added manually (which was included in meteor-base) to bring such functionality back?
– Ricardo Pesciotta
Aug 9 at 10:02
Ok, found the issue.. the
meteor
package must also be installed, otherwise css
is not imported into the client. Updated the answer to include this info.– Ricardo Pesciotta
Aug 9 at 10:07
meteor
css
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Client only or is server required?
– Jankapunkt
Aug 6 at 8:19