React-js-boilerplate is a Universal React boilerplate that uses Webpack
First, clone the project:
$ git clone https://github.com/mojomoth/react-js-boilerplate.git <project-name>
$ cd <project-name>
Just in case you do not need some features, different branches are provided in this project.
Branch | Description |
---|---|
react-js-boilerplate | Pure react project |
react-js-boilerplate2 | Environment with CSS, SCSS, Eslint |
$ git checkout <branch>
Then, install the dependencies. It is recommended to use Yarn, (because it is blazing fast). You can still use npm as well.
$ yarn install # or npm install
You can execute the scripts below by yarn run <script>
or npm run <script>
.
Command | Description |
---|---|
start | Starts webpack development server; served at localhost:7000 |
build | Bundles the source in ~/build directory |
- config # webpack configuration files
- src # application source code
----- components # directory for presentational components