1.0.0 • Published 5 years ago

cli-lottery v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

lottery CLI

A CLI for lottery - 1.0.0.

First use

$ create-react-app MyProject
$ cd MyProject
$ npm install cli-lottery
$ lot start

The 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..

PathDescription
src/App.jsApp.js with Redux & Routes
src/index.jsIndex.js with Redux Store Provider
src/routes/index.jsRoutes from system
src/http/firebase.jsFile with firebase settings
src/http/API.jsFile with Axios API settings
src/store/index.jsStore settings
src/store/actions/exampleAction.jsExample of redux action
src/store/reducers/exampleReducer.jsExample of redux reducer
src/store/reducers/rootReducer.jsReducer that combines all reducers

Creating a component

To create a component on your react application, just use this:

$ lot component MyComponent

This 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

1.0.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago