Based on Cory House's project for Pluralsight: https://github.com/coryhouse/pluralsight-redux-starter
But with many changes: Added TypeScript, upgraded React, Router, Bootstrap, ...
- Clone react-redux-starterkit
- Go to web/
- npm install
- npm run start:mocked
- Go to http://localhost:9090
See package.json for more scripts.
- ES6
- Babel
- React
- Redux
- Redux asynchronous calls: redux-thunk
- Router: react-router v4
- Static typing: Typescript
- Linter: eslint, (tslint)
- Build: webpack
- development mode
- production mode
- Local dev server: webpack-dev-server
- Style
- pre-processing: SASS
- Bootstrap v4
- Fontawesome 5 (SVG with JS)
- Test
- mocha
- chai or expect
- enzyme
- jsdom
- (nock)
- demo
Routing with hash er default. To use BrowserRouter (see App.tsx) the server has to be configured correctly.
To use BrowserRouter:
- App.tsx:render(): Change from HashRouter to BrowserRouter
- rm -rf node_modules
- npm cache clean