This was a practice project used to learn and explore configurations for multiple tools from the ground up, the main one being webpack. Centered around boilerplate code, it could be used as a base for simple web projects based on React. It includes a working structure and opinionated settings as a starting point.
This project uses:
react
+styled-components
for building a component-based interfaceredux
+redux-saga
for managing state and side effectswebpack
+babel
for transpiling, minificating and bundling, set up with cache busting via filename hashingeslint
+stylelint
to enforce good coding practices and avoiding simple errors - based on airbnb configs
Install the dependencies and devDependencies.
$ cd react-base
$ npm ci
To run the project locally using the webpack-dev-server:
$ npm start
To generate assets for a production server:
$ npm run build
Then check the dist folder for them. You can also serve them locally using http-server for testing purposes:
$ npm install -g http-server
$ npm run serve
- Author: Thiago L. Lima
MIT