Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chattes/reduxboilergenerator
Generates Boiler Plate code if you use REDUX for handling API calls
https://github.com/chattes/reduxboilergenerator
boilerplate react redux redux-actions
Last synced: about 2 months ago
JSON representation
Generates Boiler Plate code if you use REDUX for handling API calls
- Host: GitHub
- URL: https://github.com/chattes/reduxboilergenerator
- Owner: chattes
- License: mit
- Created: 2018-02-03T01:14:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-26T12:27:54.000Z (almost 7 years ago)
- Last Synced: 2024-11-25T13:21:49.018Z (2 months ago)
- Topics: boilerplate, react, redux, redux-actions
- Language: JavaScript
- Homepage:
- Size: 165 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## About
If you have used Redux in your Project, you must be aware that common convention is
to have a Reducers Folder which contains all your Reducers.
You also should be having an Actions folder with atleast two file.* Action File
* Action Type FileUsually you have to have 3 actions for any API calls
* `_REQ`
* `_RES`
* `_ERROR`That is a lot of Boiler Plate for every API Calls.
**reduxboilergenerator** provides you with a Command Line utility to generate this boiler plate so that you quickly get to the core logic.
There are 3 files and 2 folder generated.
```
--Actions
--Actions.js
--ActionType.js
--reducers
--Reducers
--index.js
```![alt text](https://i.imgur.com/lgXZFWR.gif)
It will generate the common boiler plate code for you and then you just fill up the rest according to your
requirements.Currently the boiler plate uses `jquery` and makes an `xhr` request and does not use `Fetch` or `Axios`.
Feel free to submit a pull request or raise Issues, if you see any shortcomings!### HAPPY BOILING!!
## Example
```
$ npm install -g reduxboilergen
```## Usage
In Command Line type the Command and follow along the Prompts
```
$ boilredux
```