access MONGODB on remote server [closed]

You need to write a backend API that will be used by your frontend/desktop application. The technology you use is up to you – it can be Node, Python, Ruby, Java, Go, Lua, Perl or even C.

If you use Node then you can use Express, if you use Python then you can use Django, if you use Ruby then you can use Rails, if you use Perl then you can use Catalyst etc. so when you choose your language and runtime then you will have to choose a backend framework to write the API because you don’t want to do it from scratch especially if you don’t have experience with that.

If you choose Node then LoopBack is relatively easy to quickly build a RESTful API to access the database. But there is also Hapi, Restify, Sails, Koa, Express and much more.

That backend would have to connect to the database because it is never a good idea to connect to your database directly from an application on the user’s computer for security reasons.

This is not a question that anyone will be able to answer in more details. There are a lot of technologies to understand to build what you need. You will need some time to gain experience needed to do what you describe but here are the main concepts to get familiar with: backend languages and runtimes, backend frameworks, API architectures, REST, HTTP, Mongo drivers, queries, abstractions, data models, routes, endpoints, handlers, controllers etc. Good luck.

Leave a Comment