• Stars
    star
    628
  • Rank 71,541 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A set of standard actions and reducers for Redux CRUD Applications

Redux CRUD

Looking for a new mantainer: See #77

Codeship Status for Versent/redux-crud

Redux CRUD is a convention driven way of building CRUD applications using Redux. After building several Flux applications we found that we always end up creating the same action types, actions and reducers for all our resources.

Redux CRUD gives you a standard set of:

  • action types: e.g. USER_UPDATE_SUCCESS
  • actions: e.g. updateSuccess, updateError
  • reducers: for the action types above e.g. updateSuccess

Working with resources in Redux

When building an app you might have resources like users, posts and comments.

You'll probably end up with action types for them like:

  • USERS_FETCH_SUCCESS
  • POSTS_FETCH_SUCCESS
  • COMMENTS_FETCH_SUCCESS

And action creators like:

  • users.fetchSuccess
  • posts.fetchSuccess
  • comments.fetchSuccess

There's obvious repetition there. Redux CRUD aims to remove this boilerplate by providing strong conventions on naming and processing data.

Stores

Redux-crud provides two stores:

  • List. A plain JS array. This preserves the order of records.
  • Map. A JS object where records are indexed by key. This provides faster writes and lookups.

Docs

Actions

Reducers

Using with Redux

Tips

Testing

npm test

Example

You can see a basic example here

More Repositories

1

saml2aws

CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP
Go
1,941
star
2

unicreds

unicreds is a CLI which manages secrets in AWS using DynamoDB and KMS.
Go
116
star
3

redux-loader

[Deprecated] A high order component and request management utility for Redux.
JavaScript
38
star
4

cfn-check

CloudFormation template validation tool - SUPERSEDED BY https://github.com/aws-cloudformation/cfn-python-lint
JavaScript
29
star
5

kinesis-tail

Tool which provides tail for Kinesis
Go
19
star
6

golang-lambda-pipeline

A sample golang serverless application, with multi-account CI/CD via CodePipeline
Go
13
star
7

sam-sceptre

A demo of SAM Application deployment using Cloudreach's Sceptre
Makefile
10
star
8

react-starter

[Unmaintained] react-starter
JavaScript
8
star
9

syslog-cloudlogs

This service acts as a bridge from syslog (TLS) to cloud based logging services
Go
7
star
10

action-names

Standard Action names for Flux
JavaScript
5
star
11

bless

This project is a port of the netflix/bless bless_client.
Go
4
star
12

stax-orchestrator

Stepfunctions to deploy Stax Accounts + Workloads
Python
3
star
13

generic_saml_idp

Ruby
3
star
14

buildkite-stack

Shell
3
star
15

homebrew-taps

Taps for the tools we have open sourced.
Ruby
3
star
16

go-vermock

A mocking framework for Go
Go
3
star
17

jenkins-ignore-committer-strategy-plugin

This plugin provides addition configuration to prevent multi branch projects from triggering new builds based on a blacklist of commit authors.
Java
3
star
18

siu

[Unmaintained] Seamless Immutable Utils
JavaScript
2
star
19

styles

Style guides
1
star
20

animated-gif-maker

Short bash script for turning videos into animated gif. Good for pull requests.
Shell
1
star
21

simple-project-templates

Generate templates with yoeman, cookiecutter etc to create simple projects in python node etc...
Python
1
star
22

demo-lambda-safe-deployments

Demo of Lambda DeploymentPreferences property
JavaScript
1
star