Home / Companies / Couchbase / Blog / Post Details
Content Deep Dive

ScoreMore: Creating Baseball ORM and Views

Blog post from Couchbase

Post Details
Company
Date Published
Author
William Hoang, Mobile Developer Advocate, Couchbase
Word Count
888
Language
English
Hacker News Points
-
Summary

ScoreMore Baseball has launched an app across major mobile platforms, utilizing Couchbase to enhance its functionality. The app's architecture involves designing Object Relation Maps with a "type" attribute to categorize documents, such as "coach" or "team," and uses arrays to organize data like a batter's hits or a team's seasonal records. Views in the app ensure that documents of a single type are returned, and a Spray Chart View, for instance, visualizes hit locations for players. JavaScript structures represent various document types, and JSON.stringify is used for database interactions. Overall, the app aims to provide a seamless experience for users across different devices, leveraging Couchbase Mobile's capabilities.