1.0.0 • Published 7 years ago
cli-lottery v1.0.0
lottery CLI
A CLI for lottery - 1.0.0.
First use
$ create-react-app MyProject
$ cd MyProject
$ npm install cli-lottery
$ lot startThe start command will install the following dependencies:
| Dependency |
|---|
| Firebase |
| Redux |
| Redux-Thunk |
| React-Toastify |
| Axios |
| redux-firestore |
| react-redux-firebase |
| react-router-dom |
| styled-components |
| enzyme |
it will also create the following structure..
| Path | Description |
|---|---|
| src/App.js | App.js with Redux & Routes |
| src/index.js | Index.js with Redux Store Provider |
| src/routes/index.js | Routes from system |
| src/http/firebase.js | File with firebase settings |
| src/http/API.js | File with Axios API settings |
| src/store/index.js | Store settings |
| src/store/actions/exampleAction.js | Example of redux action |
| src/store/reducers/exampleReducer.js | Example of redux reducer |
| src/store/reducers/rootReducer.js | Reducer that combines all reducers |
Creating a component
To create a component on your react application, just use this:
$ lot component MyComponentThis command will create a component inside src/components called MyComponent/index.js. Additionally, it will create a styles.js from Styled Component and a default Enzyme Test;
License
MIT - see LICENSE