I'm trying to learn CouchDB by working through a simple RSS reader web application. The requirements are:
- Allow each user to import X feeds to his list
- User can add tags to each feed
For each feed maintains a list of the last 50 articles in the database
User should get an update each time any feed he subscribes to adds new items to it.
After reading various guides, and Principles for Modeling CouchDB Documents which is a great related question here's how I imagine it'd be structured:
Feeds
- Name
- Last Updated
Articles
- FeedId
- Title
- Text
Users
- id
- Feeds: [feed1, feed2]
- Tags: {funny: [article, article2]} //Maybe a new db with #userid #articleid #tagname ?
And then for each user I'd create a view with articles by feed and add the tags to it for presenting it in the ui.
Am I on the right track here? How would you structure this?