Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/khanhtc1202/flux-arch-sample

sample react app implemented under flux arch
https://github.com/khanhtc1202/flux-arch-sample

flux-architecture react redux typescript

Last synced: 8 days ago
JSON representation

sample react app implemented under flux arch

Awesome Lists containing this project

README

        

# Sample Flux architecture for React App

[![CodeFactor](https://www.codefactor.io/repository/github/khanhtc1202/flux-arch-sample/badge)](https://www.codefactor.io/repository/github/khanhtc1202/flux-arch-sample)

A sample React application implemented under [FLUX](https://code-cartoons.com/a-cartoon-guide-to-flux-6157355ab207) architecture.

## What can it do?

![Image](https://media.giphy.com/media/RkN5nA5O00StGGwXVQ/giphy.gif)

More explanation about this sample go [here](https://fromnoobstogeeks.com/2018/04/15/flux-arch/).

## Project structure

```bash
.src
├── actions
│   ├── SearchAction.ts
│   └── TypeAction.ts
├── components
│   ├── SearchResults.tsx
│   └── SearchBox.tsx
├── containers
│   ├── SearchBox.ts
│   └── SearchResults.ts
├── reducers
│   ├── Search.ts
│   ├── Type.ts
│   └── index.ts
├── index.tsx
├── state.ts
└── store.ts
```

## Usage guide

### Install dependencies

Install dependencies with `npm` using command

```bash
$ npm install
```

### Build

```bash
$ npm run build
```