I am using Cube.js for backend and React for frontend. Whenever I stop the cube.js server data gets lost(I have to make the charts again from scratch). Is there any way to persist the charts even if we stop the server?
Asked
Active
Viewed 381 times
1
-
Do you mean when server stops you lose your charts in generated dashboard-app? – Pavel Tiunov Oct 30 '19 at 18:22
-
Yes exactly that is what happening – hiren shah Oct 30 '19 at 18:52
1 Answers
0
Cube.js is basically just a backend to perform analytical queries. However Cube.js Playground provides frontend application scaffolding generation using various templates. In case of dynamic dashboard template it provides GraphQL Apollo implementation that persists it to local storage for development purpose. You're responsible for providing production GraphQL backend.
You can learn on how to setup it here: https://react-dashboard.cube.dev/authentication-and-graph-ql-api.

Pavel Tiunov
- 1,163
- 6
- 8