novel icon indicating copy to clipboard operation
novel copied to clipboard

Notes saved in local browser instead of cloud

Open yishaik opened this issue 1 year ago • 5 comments

Is it possible to have changes saved in the cloud when I use my own vercel deployment so I have the same content regardless of the device I'm using to connect

yishaik avatar Jun 18 '23 12:06 yishaik

Looking to add accounts & cloud storage / image uploads 🔜 👀

steven-tey avatar Jun 18 '23 18:06 steven-tey

Image uploads is live!

  • Tweet: https://twitter.com/steventey/status/1671896380057739264
  • Discussion thread: https://github.com/steven-tey/novel/discussions/37

steven-tey avatar Jun 22 '23 15:06 steven-tey

Would this be saved on Vercel KV? Next-Auth for accounts and vercel KV for storing the content, I'll give it a shot

Dhravya avatar Jun 25 '23 07:06 Dhravya

@Dhravya Vercel KV seems like the most direct, straightforward approach, but ideally we'd wanna use Vercel Postgres for relational data in the long run. For reference, Notion uses postgres + BSON: https://www.reddit.com/r/Notion/comments/lxhxwi/anyone_now_what_database_architecture_is_notion/

Will need to think about this a bit more, but LMK if you have any ideas!

steven-tey avatar Jun 25 '23 19:06 steven-tey

Ok, so, the way I think about it is:

  • A users table, storing pfp, username, email, id, etc
  • A "Novels" table (idk what we would name it tbh) pointing to user and storing the novel itself as txt??

Dhravya avatar Jun 26 '23 06:06 Dhravya

Update here: won't be adding a cloud feature directly inside the novel package, but feel free to npm i novel into your own app and connect to the cloudstorage of your choice! :)

steven-tey avatar Sep 26 '23 20:09 steven-tey