Skip to content

State Manager

Ryan Martin edited this page Mar 4, 2020 · 2 revisions

Skybunk State Manager

The Skybunk State Manager is a node module which is consumed by both mobile and web applications. It contains all of the shared front-end state and logic. This allows the mobile and web applications to be strictly UI, while all the main logic lives within the State Manager.

It is broken down into several different components, we'll call modules.

Modules

The package is broken down into different modules, representing the core components of the application:

  • Channels
  • Profiles
  • Posts
  • User
  • Auth

Each module defines it's respective state and actions.

Dev setup

  1. Set up node
  2. Clone the repo
    git clone https://github.com/CGUC/state-manager.git
    
  3. npm install

Useful commands

Command Description
npm test Run the test suite
npm run code-format Runs eslint and prettier, auto-correcting issues
npm run code-format-check Runs eslint and prettier, checking for errors without auto-correcting them

Clone this wiki locally