简体   繁体   English

我应该如何存储笔记的数据?

[英]How should I store the data of the notes?

I made this lite version google keep app in react and was wondering how you personally would go about storing the notes data, so that anyone entering the page sees the same notes, and have the same editing capabilities(deleting the notes).我做了这个精简版的 google keep app in react 并且想知道你个人会如何存储笔记数据,以便任何进入页面的人看到相同的笔记,并具有相同的编辑功能(删除笔记)。

Right now it only stores till refreshed.现在它只存储直到刷新。 https://audunlk.github.io/googlekeep/ https://audunlk.github.io/googlekeep/

Thank you.谢谢你。

Some JSON fill to store data and later edit it or delete it.一些 JSON 填充以存储数据,稍后对其进行编辑或删除。 or firebase real-time database或 firebase 实时数据库

If you know how to work with REST you could try Firebase .如果您知道如何使用 REST ,您可以尝试Firebase

If you want a simple way, json would do the trick too.如果你想要一个简单的方法,json 也可以。 But if you want to have user auth at a later point you can rely on the firebase auth and would not need to implement your own.但是,如果您想稍后获得用户身份验证,您可以依赖 firebase 身份验证,而无需自己实现。

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

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