Hello World Example for the Fluid Framework
Перейти к файлу
Skyler ca3a42ee94 working independently 2020-08-18 17:33:54 -07:00
src initial push. Stright copy paste. 2020-08-18 15:29:02 -07:00
tests working independently 2020-08-18 17:33:54 -07:00
.editorconfig initial push. Stright copy paste. 2020-08-18 15:29:02 -07:00
.eslintrc.js initial push. Stright copy paste. 2020-08-18 15:29:02 -07:00
.gitignore initial push. Stright copy paste. 2020-08-18 15:29:02 -07:00
.npmignore initial push. Stright copy paste. 2020-08-18 15:29:02 -07:00
.npmrc working independently 2020-08-18 17:33:54 -07:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-08-18 15:16:31 -07:00
LICENSE Initial LICENSE commit 2020-08-18 15:16:33 -07:00
README.md working independently 2020-08-18 17:33:54 -07:00
SECURITY.md Initial SECURITY.md commit 2020-08-18 15:16:36 -07:00
eslint.done.build.log initial push. Stright copy paste. 2020-08-18 15:29:02 -07:00
jest-puppeteer.config.js working independently 2020-08-18 17:33:54 -07:00
jest.config.js working independently 2020-08-18 17:33:54 -07:00
package-lock.json working independently 2020-08-18 17:33:54 -07:00
package.json working independently 2020-08-18 17:33:54 -07:00
tsconfig.esnext.json initial push. Stright copy paste. 2020-08-18 15:29:02 -07:00
tsconfig.json working independently 2020-08-18 17:33:54 -07:00
webpack.config.js working independently 2020-08-18 17:33:54 -07:00
webpack.test.js working independently 2020-08-18 17:33:54 -07:00

README.md

@fluid-example/hello-world

Dice Roller is a basic example that has a die and a button. Clicking the button re-rolls the die and persists the value in the root SharedDirectory. The Fluid Container is defined in container/, the Data Object is defined in dataObject/.

This implementation demonstrates plugging that Container into a standalone application, rather than using the webpack-fluid-loader environment that most of our packages use. This implementation relies on Tinylicious, so there are a few extra steps to get started. We bring our own view that we will bind to the data in the container.

Getting Started

If you want to run this container follow the following steps:

    npm i
    npm run start:server
    npm start

Testing

    npm run test

For in browser testing update ./jest-puppeteer.config.js to:

  launch: {
    dumpio: true, // output browser console to cmd line
    slowMo: 500,
    headless: false,
  },

Data model

Dice Roller uses the following distributed data structures:

  • SharedDirectory - root