Almin

Almin

  • Docs
  • API
  • Blog
  • Help
  • GitHub

›Tutorial

Introduction

  • Getting Started
  • Components of Almin
  • Principles
  • Hello World

Tutorial

  • Example projects
  • Counter Tutorial
  • Todo App tutorial

Guides

  • Logging
  • Nesting UseCase
  • Performance profile
  • Strict mode
  • UseCase LifeCycle
  • TypeScript

Troubleshooting

  • UseCase is already released

Appendix

  • GLOSSARY

API

  • API Index
  • Context
  • Dispatcher
  • DispatcherPayloadMeta
  • LifeCycleEventHub
  • Store
  • StoreGroup
  • UseCase
  • UseCaseContext
  • UseCaseExecutor
Edit

Example projects

Almin provides official examples

examples/counter

Tutorial: Counter Tutorial

Simple increment counter.

What is learn from this example?

  • Flux pattern
    • Counter only has Store, not have Repository.
  • How to work Almin.

examples/todomvc

Tutorial: Todo App tutorial

TodoMVC implementation.

  • JavaScript Version: examples/todomvc
  • TypeScript version: examples/todomvc-typescript
  • Flow version: examples/todomvc-flow

examples/svg-feeling

Change color of SVG icon and Background Color rapidly.

What is learn from this example?

  • Separate Domain and Store/State
    • Two way update state.
  • How to implement for 60 FPS
    • React Component should implement shouldComponentUpdate()

examples/shopping-cart

Shopping Cart

This example implements voronianski/flux-comparison.

What is learn from this example?

This shopping-cart example explains the reason we encourage you to normalize your data is to avoid duplication.

  • How to set initial data
  • How to implement domain model
  • How to implement UseCase
  • How to resolve the issue of transaction updating
    • First, update Product's inventory.
    • Second, update Cart's products
    • This issue related with Single source of truth
  • How to test UseCase and Store/State
← Hello WorldCounter Tutorial →
Almin
Docs
Getting StartedTutorialAPI Reference
Community
User ShowcaseStack OverflowTwitter
GitHub
GitHubReleasesIssuesStar
Copyright © 2021 azu