A React boilerplate that comes with a custom CLI for increased productivity and that is designed for scalable and high-performance web applications. Visit reactmilkshake.com for more information or read the documentation below.
This project includes a custom CLI for generating components & features. The CLI can handle a lot of the redux boilerplate for you. First mark the scripts as executable (with the command chmod +x ./cli/*
) and you’re good to go.
npm run make:component COMPONENT_NAME
npm run make:connected_component COMPONENT_NAME
This will do the same as make:component
but connects the component to the redux store.
npm run make:feature FEATURE_NAME FEATURE_TYPE FEATURE_URL
action
with the given name and typereducer
for the created actionsagas
file for the created actionservices
file for making an API callExamples:
npm run make:component Button
npm run make:connected_component Container
npm run make:feature books getBooks GET_BOOKS
npm run make:feature users getUsers GET_USERS www.example.com/api/users
Try it out to see how it looks or check the code_templates
folder. You can customize these files to your own needs.
React Milkshake is a boilerplate for kick-starting your new projects. It is not a component library and does not come with a template or theme. But, it does come with a couple of styled components, like a sidebar layout or card component, that you can use to quickly develop your application.
This project was bootstrapped with Create React App.
In the project directory, first run yarn
or npm install
, then run yarn start
or npm start
.