Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 1.16 KB

README.md

File metadata and controls

74 lines (49 loc) · 1.16 KB

react-project-creator

Description

A simple project generator with an ability to generate components and to set up basic libraries

How to setup

To setup this project generator globally use the following commands

git clone https://github.com/datarockets/react-project-creator.git
cd react-project-creator
npm install -g

How to use

To generate the basic project structure use the following command

react-up new <project-name>

Element generator

To generate a component, container, or model use the following command

react-up generate [component|container|model] <element-name>

To generate a ui, layout, or page component use the following flags

react-up generate component <element-name> [--ui|--layout|--page]

To generate redux actions, reducers, sagas, and thunks use the following flags

react-up generate redux <element-name>

Project structure

<project-name>
  config
  public
  resources
  src
    components
      layouts
      pages
      ui
    containers
    routes
    models
    utils
    redux
      actions
      reducers
      sagas
      thunk