Can MongoDB be packaged in an Electron app?

前端 未结 3 1901
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-02 20:57

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

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-02 21:33

    Yes. I have used this method in the past. It brings in mongod.exe and launches it.

    Take a look here to see how it is done.

    https://github.com/nosqlclient/nosqlclient-electron/blob/master/index.js

提交回复
热议问题