But you still get it.
Simple base app with react, react-router v4, hot-reload & sass.
npm i -g simple-react-app to install the package.
simple-react-app folderName to start the boilerplate into
Or if you're using
email@example.com or above, you can simply run
npx simple-react-app folderName, without the need to install the package globally.
This is a base project that you can use to jumpstart your react apps, it works similarly to create-react-app, just install the package globally and use it to create as many projects as you want (check How to install for detailed instructions). It includes the last react spec as of today 01/03/2018, and uses react-router v4 to handle routes. Style is handled by sass/scss, Bundle is generated with webpack 4. NB: this is just front end, you can use whatever backend language you are most comfortable with.
You can use both npm or yarn, the version I used to create this project are:
$ node -v ; npm -v ; yarn -v v8.8.1 5.4.2 1.2.1
If you just freshly installed yarn/npm you are good to go, else you might need to upgrade, for npm I use
npm install -g n
to install it and after that select at least the stable version (what I used).
and now you have the latest stable version of node&npm.
npm i -g simple-react-app to install this package globally, from there you will be able to jumpstart as many boilerplates as you wish.
simple-react-app folderName to create a react boilerplate on the
folderName folder. By default all dependencies are already installed, just
cd folderName and start hacking.
npm start to start dev server with hot reload, it's live on
yarn run build/
npm run build to build prod bundle, it includes both treeshaking and uglify to optimize the code as much as possible.
npm test run the tests with Jest and Enzyme, by default the test included only check for the correct render of base components & routes, all are passing.
The boilerplate structure and files are the same as this repo minus the bin folder, everything else is exactly the same.
I wrote a small guide on how to contribute and the common etiquette to follow.