Todo is a more advanced example that covers more complicated scenarios. The Todo app uses React as it's view rendering platform.
You can run this example using the following steps:
- Run
npm install
andnpm run build:fast -- --nolint
from theFluidFramework
root directory. a. For an even faster build, you can add the package name to the build command, like this:npm run build:fast -- --nolint @fluid-example/todo
- Run
npm run start
from this directory (examples/data-objects/todo) and open http://localhost:8080 in a web browser to see the app running.
There are two Fluid objects that make up the Todo application:
A Todo is the top level Fluid object and contains three core concepts:
- Title
- Ability to create new Todo Items
- Collection of Todo Items
A Todo Item is a singular todo entry. Because each Todo Item is its own Fluid object each Todo Item can be independently opened.
Todo Items can contain one inner Fluid object. These can currently be another Todo Item or a Clicker.
There are two other Fluid objects that live in the todo repo but are there to extend functionality of TodoItem
A Collaborative TextArea based off the React CollaborativeTextArea. This should be replaced by just pulling in the @fluid-example/collaborative-textarea
Fluid objects.
Used the SharedString
to manage a list of text items.