最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Using MongoDB locally (electron)? - Stack Overflow

programmeradmin1浏览0评论

I need to store some data as part of my electron application. I know how to set up a REST API, and serve my application like so. However, is it also possible to use (e.g.) MongoDB locally, and implement something similar to a REST API locally? I would like to not assume an internet connection for this project.

I need to store some data as part of my electron application. I know how to set up a REST API, and serve my application like so. However, is it also possible to use (e.g.) MongoDB locally, and implement something similar to a REST API locally? I would like to not assume an internet connection for this project.

Share Improve this question asked Mar 30, 2017 at 11:37 George WelderGeorge Welder 4,05511 gold badges45 silver badges75 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 4

If you need to implement a mongoDB like database locally for the application without internet, you can use lowdb

Yes it is possible, you have nodejs in electron so you can use mongoose: https://github./Automattic/mongoose

But in this case every person who use your application have to install mongodb in his machine.

发布评论

评论列表(0)

  1. 暂无评论