MeteorJs MongoDB production deployment

I am new to MeteorJS and have some frustrating questions.

If they are oversimplified, forgive me. :)

Reference Information. I would like to use this framework to write a mobile app (no webpage yet) and hit my existing RESTful endpoints for data requests and CRUD.

Since I don't need a database (bc I already have one connected to my other server) how can I remove or disable MongoDb? I found this SO answer and I am deleting meteor-platform

, but somehow it gets added back. (Just doing the standard meteor create --example todos

)

If I can't disable Mongo functionality, would there be a downside to keeping it there and just never using it?

Finally, what happens when I deploy an iOS / Android MeteorJS app in relation to the MongoDb I was using locally? I'm guessing there is a hole somewhere where I provide the URI so this app knows how to get to it? I cannot find this place if such a thing exists.

+3


source to share


1 answer


If you are not using any of the meteorite server functions (login, publish, methods), then your client application has no way of knowing the server is not running.

You can use HTTP securely on the client to consume your RESTful API.

mini mongo

on the client is pure javascript and does not require a server connection. But there is no easy way to store data in the database mini mongo

without setting up a publish-subscribe link via DDP.



Packages like GroundDB assume there is a server side.

When developing your application, you will need to run the meteorite server application to be able to serve the updated application every time there is a code change.

0


source







All Articles