A boilerplate+ built using React, Redux, TypeScript and Material-UI. It contains basic pre-baked components and utilities to get your project started quickly. Implements guidelines of Hierarchical Front-end Structure.
The package includes:
- sign-in page (any login/password combination will be accepted)
- dashboard page fetching JSON data from external source (courtesy of JSONPlaceholder)
- placeholder of authentication mechanism. Stores token in
localStorage
- basic tests utilising Jest and React Testing Library
Node.js >= 10.0.0
Yarn >= 1.0.0
git clone [email protected]:petejank/react-typescript-material-boilerplate.git
- clone the repositorycd react-typescript-material-boilerplate
- enter the cloned directoryyarn install
- install dependencies using Yarnyarn start
- run the development server- Access http://localhost:8080/
Remember to first install required node dependencies through yarn install
(preffered) or npm install
.
To run tasks type yarn <taskNameHere>
or npm run <taskNameHere>
. Tasks list:
start
- run Webpack development serverbuild
- build the project in development modebuild:prod
- build the project in production modelint
- prettifies and then lints ts* and js* filestest
- run tests and terminate. Usable in CI environmentstest:watch
- run tests in watch mode. Usable for developmenttest:coverage
- run tests and generate test coverage reportbundle-analyzer
- runs bundle analyzer of the production build
Feel free to create an issue or a PR if you have an idea on how to improve this repository.
This work is licensed under MIT license