本文介紹了MongoDB 可以打包在 Electron 應用程序中嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我可以將 MongoDB 打包到一個 Electron 應用程序中,這樣我就不需要在客戶端的機器上安裝它了嗎?我正在 OSX 上開發一個應用程序,它可能會在 Windows 上使用.我需要在客戶端上單獨安裝 Mongo 嗎?
Can I package MongoDB in an Electron app so I don't need to install it on a client's machine? I'm developing an app on OSX and it will probably be used on Windows. Do I need to separately install Mongo on the clients?
推薦答案
是的.我過去使用過這種方法.它引入了 mongod.exe 并啟動它.
Yes. I have used this method in the past. It brings in mongod.exe and launches it.
看看這里是怎么做的.
https://github.com/nosqlclient/nosqlclient-electron/blob/master/index.js
這篇關于MongoDB 可以打包在 Electron 應用程序中嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!