简体   繁体   English

使用 Cube.js 持久化数据

[英]Persist data using Cube.js

I am using Cube.js for backend and React for frontend.我将 Cube.js 用于后端,将 React 用于前端。 Whenever I stop the cube.js server data gets lost(I have to make the charts again from scratch).每当我停止 cube.js 服务器数据时都会丢失(我必须从头开始重新制作图表)。 Is there any way to persist the charts even if we stop the server?即使我们停止服务器,有什么方法可以保留图表吗?

Cube.js is basically just a backend to perform analytical queries. Cube.js 基本上只是一个执行分析查询的后端。 However Cube.js Playground provides frontend application scaffolding generation using various templates.然而 Cube.js Playground 使用各种模板提供前端应用程序脚手架生成。 In case of dynamic dashboard template it provides GraphQL Apollo implementation that persists it to local storage for development purpose.在动态仪表板模板的情况下,它提供 GraphQL Apollo 实现,将其持久化到本地存储以用于开发目的。 You're responsible for providing production GraphQL backend.您负责提供生产 GraphQL 后端。

You can learn on how to setup it here: https://react-dashboard.cube.dev/authentication-and-graph-ql-api .您可以在此处了解如何设置它: https://react-dashboard.cube.dev/authentication-and-graph-ql-api

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM