In this blog, I’ll walk you through the steps and corresponding source code blocks to help make your LoopBack app interact with Cassandra Materialized Views.
Install the Cassandra connector from:
Let’s start with a backstory. In 2010, my dad, Robert Okun, and I started using an Excel spreadsheet to see who could correctly predict the outcome of more NFL games on a weekly basis. This caught on quite easily, and we’ve kept the game going since then. Along the way we made some additions to the game rules, trackers, points, and so on. Needless to say, the Excel spreadsheet has become a little, uh, let’s call it cumbersome.
This got old.
Most people who have used LoopBack know that it is a highly-extensible, open-source Node.js framework that enables you to quickly create dynamic end-to-end REST APIs with little or no coding.
These REST APIs can be used by client applications (Web/Mobile/IoT/Other) to perform CRUD + Custom operations on any 3rd party application for which there is a LoopBack connector. Irrespective of the nature of the APIs/Client libraries exposed by the 3rd party application, the client has standard, simple and runtime agnostic REST APIs to perform actions on the application. That is the value proposition of LoopBack.
Now let’s consider the other side of the story: where an event occurs in a 3rd party application (ex. a record got created / updated / deleted). Different applications may expose these events through different mechanisms (Webhooks, Streaming, Polling API, Websockets, PubSub, PubSubHubbub, other). But what if client applications want to consume these events in a standard, simple and runtime agnostic way? Is that possible with LoopBack? Can we use the same LoopBack programming constructs of datasources, models and connectors for the events side of the story?
The StrongLoop team has been working with Mobile Monday for events for some time now. Recently, though, we combined forces to host a hackathon at Galvanize NYC from June 2-4th, 2017. Developer Evangelist Joe Sepi was on hand to provide an overview of LoopBack as well as support and encouragement.
Not familiar with Mobile Monday? Here’s how they describe themselves:
MobileMonday is the premiere community for the Mobile and Connected Industry. It is an open community platform fostering industry cooperation through events that educate, demo products, share ideas and discuss industry trends.
The StrongLoop team is heading to DeveloperWeek New York. The event, described as New York City’s largest developer conference and expo, runs from June 19-21.