Can I use Minimongo without using the entire Meteor or Blaze infrastructure?

I am dealing with large json files on the client side. I want to be able to request json in the same way as I request mongo collections on the server side. I recently heard about minimongo, which is exactly what I want. By the way, my backend is Flask, and I use angular in the interface. Can I use Minimongo as a simple javascript library without using the entire Meteor / Blaze infrastructure?

+6
source share
2 answers

Unfortunately, you cannot just grab minimongo directly from meteor packets and make it work in a browser. However, there are a couple of ways.

There is a fork at https://www.npmjs.com/package/minimongo

It was forked in January 2014.

If you need / need the last of the meteor, I also have a version that captures the latest version of minimongo, and also creates / analyzes / looks at grunt scripts.

You can get it from here: https://github.com/rurri/minimongo-standalone

+1
source

I was able to get this job lately and was excited (by doing a well-documented removal of the meteoroid package, adding them all separately, and then removing the mongo package).

The fact is that there is no documentation on how to create a collection without using the new Mongo.Collection (null) syntax; so get around this a little peek into this file .

// New mongo-less syntax. Faucets = new LocalCollection(); // Old Syntax Faucets = new Mongo.Collection(null); 
+1
source

Source: https://habr.com/ru/post/983563/


All Articles