给与诺言Polymer和Web组件在简化开发中具有我的梦想,我想知道是否有人开发了一个包装器组件来简化与MongoDB后端的对话?有人知道吗?
Given the promise Polymer and web components have in simplifying development I am wondering if anyone has developed a wrapper component that simplifies talking to a MongoDB backend? Does anyone know of one?
这是一个理智的想法吗?我想这需要一个自定义的服务器端代码,但是即使如此,我仍希望很多人写过一个代码,但我找不到任何东西.还是在这种情况下,有太多选项需要我编写自己的node/express/mongo服务器?
Is this a sane idea? I guess it would need a custom server-side piece, but even so, I expected that lots of people would have written one, but I cannot find any; or is this a case where there are so many options that I should write my own node/express/mongo server?
还是AJAX组件将完成所有繁重的工作,而我只需要使用它?
Or is it that the AJAX component will do all the heavy lifting and I just need to use that?
迷惑的安迪
推荐答案我认为您应该使用Strongloop/Loopback( loopback.io/getting-started/)作为后端,并以Fetch( developer.mozilla/zh-CN/docs/Web/API/Fetch_API/Using_Fetch ). 不幸的是,并非所有浏览器都完全支持Fetch,但是要感谢这个polyfill( github/github/fetch ),您可以获得完整的受支持的后备解决方案.
I think that you should use Strongloop/Loopback (loopback.io/getting-started/) as backend and do ajax request thought Fetch (developer.mozilla/en-US/docs/Web/API/Fetch_API/Using_Fetch). Unfortunally Fetch isn't fully supported in all browser but thanks to this polyfill (github/github/fetch) you can have a full supported fallback solution.
更多推荐
是否有Polymer组件简化了与MongoDB的通信?
发布评论