Kick-start your new web application based on React and Flux technologies. It also includes Webpack, React hot loader, PostCSS, JSON-server tools for even more rapid development.
List of all dependencies is presented here
Install Node.js
Via brew:
brew install node
Via nvm:
brew install nvm
nvm install node
nvm alias default node
Clone application as new project with original repository named "react-base"
git clone [email protected]:fs/react-base.git --origin react-base [MY-NEW-PROJECT]
Create your new repo on GitHub and push master into it. Make sure master branch is tracking origin repo.
git remote add origin [email protected]:[MY-GITHUB-ACCOUNT]/[MY-NEW-PROJECT].git
git push -u origin master
Run bootstrap script
bin/setup
Run app (by default environment is 'development', port is 8000)
npm start
Run app with options
[<options>] npm start
NODE_ENV=development # build app with development environment
NODE_ENV=production # build app with production environment
NODE_ENV=test # build app with test environment
PORT=8000 # run server on 8000 port
Start to use application in browser:
localhost:8000
npm test
Run javascript linter
npm run eslint
Run stylesheets linter
npm run stylelint
Run all linters
npm run lint
Run karma tests
npm run karma
React base is maintained by Marat Fakhreev. It was written by Flatstack with the help of our contributors.