An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
November 22, 2022 02:52 am GMT
Original Link: https://dev.to/brandonkylebailey/zero-to-saas-bookmarksyioinitial-data-model-approach-e8e
Zero to SaaS - Bookmarksy.io Initial Data Model approach
I haven't talked about the data model for bookmarksy.io yet but I spent yesterday evening building out the core data model for bookmarks/categories.
Here's the approach.
First, the definitions:
- Bookmark - a twitter bookmark.
- Category - a group of bookmarks that share a domain.
The flow:
- User registers
- Categories service seeds their account with a default category "Uncategorized" (all bookmarks will initially exist as part of this category)
- Then, when a user reads their dashboard (these things happen asynchronously):
- categories are loaded
- bookmarks are loaded
- bookmarks are hydrated (reach out to twitter to capture any new bookmarks)
- hydrated bookmarks are loaded into "uncategorized"
So far, this flow exists and is stable, with the exception of bookmark hydration. I have yet to come up with a non blocking, performant solution but am working on it!
I think, given the potential variety of categories, having them account scoped makes the most sense. This will likely lead to some de-normalization but it's an acceptable trade off
If you're like me and have a tonne of bookmarks you never read, check
https://bookmarksy.io
out and join the waitlist!
Original Link: https://dev.to/brandonkylebailey/zero-to-saas-bookmarksyioinitial-data-model-approach-e8e
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To