Lesson 1 - Design database, use operations and queries
In this lesson, you will construct a data model for a Tic-Tac-Toe game decentralized app (dapp), focusing on Users, Games, and Moves. You'll learn how to implement this model in Chromia's programming language, Rell, using entity attributes, mutability, efficient indexing, and unique constraints. By the end of this section, you'll have a robust data model for your Tic-Tac-Toe game.
The second section will teach you about data manipulation on the Chromia blockchain platform. You'll learn to write operations for creating users, creating games, and recording moves. Additionally, we'll cover testing methodologies to ensure the integrity of your game and maintain its functionality.
In the third and final section, you'll focus on retrieving game-related data from the blockchain using queries. You’ll start with basic queries to fetch the recent games and then move on to more complex queries that involve sorting and filtering based on game status and player moves.
Finally, you'll learn to test your queries manually using the Chromia CLI.