A bare minimum React Redux Webpack Typescript Jest boilerplate with TodoMVC examples.
git clone https://github.com/SanderV1992/React-TypeScript-Boilerplate-Example.git
yarn run build
yarn run mock
yarn run start
src/
├── api/
├── lib/
├── store/
├── ui/
├── features/
| ├── {feature}/
| | ├── {model}/
| | | ├── {model}.effects
| | | ├── {model}.selectors
| | | ├── {model}.state
| | | ├── {model}.store
| | | ├── {model}
| | | └── types
| | ├── {feature}
| | └── index
└── pages/
└── {page}/
├── modals/
| └── {modal}
├── model/
| ├── {model}/
| | ├── {model}.effects
| | ├── {model}.selectors
| | ├── {model}.state
| | ├── {model}.store
| | ├── {model}
| | └── types
├── pages/
| ├── {page}/
| | ├── {page}
| | └── index
| └── index
├── routes
└── index
resource | description |
---|---|
/api/articles |
returns a list of articles |
/api/articles/1 |
returns a single article |
/api/articles?id=1&title=test&userId=1 |
returns a list of articles with filter |
/api/users |
returns a list of users |
/api/users/1 |
returns a single user |