Boilerplate for QS client-side projects.
- React and Redux
- ES6 support
- Webpack with React/Redux hot reloading
- Modular CSS/Sass (now with namespaces!)
- Flexbox centric design
- Mocha/Chai test support
- Linting preconfigured with .eslint
- NPM
- React Dev Tools (optional)
- Redux Dev Tools (optional)
As this is boilerplate, you probably want to fork the project. Given that these projects will be in the same organization, it has few additional steps.
git clone https://github.com/QuantifiedSelfless/qs-client-boilerplate.git
mv qs-personalized-news
cd qs-personalized-news
Create a new project with your desired name on Github, qs-personalized-news for example.
git remote set-url origin https://github.com/QuantifiedSelfless/qs-personalized-news
git push origin master
go ahead and look at the package.json "scripts" section. These commands are defined there.
npm run dev
- starts the webpack-dev-server (supports hot-module reloading) at localhost:8080npm run prod
- builds the app in dist/npm run clean
- deletes dist and dev_buildnpm run tests
- doesn't do anything at moment, but theoretically runs your Mocha/Chai scripts in the test directory
- Fullstack React/Redux Tutorial - this tutorial will take 10+ hours, but is one of the best I've found.
- A Guide to Flexbox
- React Webpack Cookbook
- The End of Global CSS
If you read through these 4 (the first one being by far the most time-intensive), you should have a good understanding of this projects structure.
Feel free to edit/branch/do whatever with this repo. Don't feel like the current version is the end-all-be-all, there are countless improvemetns to make.