Now that we have an event store (prediction server Heroku app) to capture all the user view events and ratings, and also a prediction engine (prediction engine on Heroku) to train and ask for prediction, we will focus the rest of the section on building frontend components that make REST-based calls to endpoints when a user views an item, and then we will build a component to display similar items for a product based on user View events. By the end of this chapter, we will build a reusable Lightning Component that can be used on the Salesforce communities and Salesforce App Builder. The aim of the rest of the chapter is to show how one can integrate Salesforce with the PredictionIO components we have deployed on the Heroku server.
The Salesforce platform primarily offers two ways to build a custom frontend...