Search⌘ K
AI Features

Integrating MasteryPersistence into Mastery

Explore the steps for integrating a persistence layer into the Mastery project by configuring repositories, adding persistence functions, and wiring them into GenServers. Understand how to set up development and test environments, including database credentials and sandboxing, to ensure effective data handling and testing in an Elixir OTP system.

Now, it’s time to finish up the integration. First, let’s think about what needs to happen for Mastery to work with our tiny external persistence project. We’ll specify the dependency and modify QuizSession.answer_question to take an extra configurable function that will actually persist a response. Here’s our checklist:

  • Configure the ...