1.0.18 • Published 2 years ago
jedux v1.0.18
Jedux - initialize in a second
Jedux is a React.js/Node.js boilerplate it will help you to initialize and start your React.js only, Node.js only or React.js/Node.js projects in a second.
Getting started
First of all, Install jedux globally
yarn global add jedux
ornpm i -g jedux
Go to your project directory, then initialize your project(s) with
jedux i
orjedux init
* Only one of the following structures will be recognized (directories names must be one of these)``` // One ├── parent (any name) │ ├── react (react, front or web) │ └── back (back, backend) ``` ``` // Two ├── react (react app project) └── back (back or backend) ```
! Important: The react app should be initialized with create-react-app before running
jedux i
, just create the folder for the backend projects.
Other commands
- Create your backend controllers, models and routes ; the redux actions, reducers, types and axios services in a single command
jedux create
orjedux cr
jedux create|cr [<namespace>:]<names>
Example 1:jedux cr article
- Create React components
create-container|c <name>
generates component<name>
in src/views/containerscreate-container|cc <name>
generates component<name>
in src/views/components Example:jedux c MyContainer
is same asjedux c my-container