https://github.com/wolfadex/fractal-time
A timeline manager
https://github.com/wolfadex/fractal-time
Last synced: about 1 year ago
JSON representation
A timeline manager
- Host: GitHub
- URL: https://github.com/wolfadex/fractal-time
- Owner: wolfadex
- Created: 2018-09-12T14:43:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-19T18:17:18.000Z (over 7 years ago)
- Last Synced: 2025-02-07T18:15:03.388Z (over 1 year ago)
- Language: JavaScript
- Size: 590 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fractal Timeline
---
## Quick Start
- Install [yarn](https://yarnpkg.com/en/)
- Run `yarn`
- Run `yarn dev`
---
## Documenting
Documentation uses [styleguidest](https://react-styleguidist.js.org). See the component `SampleForStyleGuide` for how to do documentation.
---
## Development
All shared state is stored in the `game` reducer. When a new user connects to the **_game_**, they get a copy of everything in that state.
To send a message to all connected users, dispatch an action that contains the key `broadcast: true`. This action will be broadcast to all connected users. Example:
```js
export const actionThatGetsBroadcasted = (someData) => ({
someDate,
broadcast: true,
type: 'SOME_TYPE',
});
```
All other users will receive that message (minus the `broadcast` key just as the user who sent it).