1.0.2 • Published 6 years ago
fomo.common v1.0.2
fomo sample
Sample UI stack to support conversation happening around UI related architecture.
Sample end-points (live)
To render a different number of sparklines on the server (initial load) pass the totalSparklines
querystring, eg
The sparklines are animating from randomly generated values, simulating updates to data pushed from the server. The pause before they beginnig animating shows the JavaScript download time. Typically in a SPA this is a blank screen before the UI renders, but in this architecture the initial load state is immediate.
To update the number of sparklines client-side hit one of the test buttons on the left (eg Show 10
).
Talking Points
Rough set of discussion topics related to the design in this repo:
- Typescript (with React)
- Server rendering (with next.js)
- Storybook (decomposed, isolated component development)
- Inline CSS
- GraphQL Server (BFF)
- Server instance
- Client calling graphql backend.
- Mocking strategy
- Lighweight API mocking conferred by GraphQL setup
- Backend system design can be led by API mock design ("graphql first" ... get the product usage scenarios right prior to laying backend systems)
- Enable parallel development streams behind APIs.
- DevOps