Starter based on Create React App.
# install dependencies
yarn
# start in dev mode
yarn start
# create production build
yarn build
- User state management:
- Login page.
- Logout button.
- Loading the initial user instance on the page load. Routing is ignored if the initial data is not loaded. Similar to
onEnterfunctionality from oldreact-router.
- Routing
- Implemented with
typeless-router - Dynamic configuration.
RouteResolverscans all modules and loads all routes automatically. - Example
RouteConfig. Some routes are only for the authenticated user, and some routes are only for the anonymous user. Feel free to extend this functionality depending on your needs.
- Implemented with
- Lazy modules
- Features
login,sample1,sample2are dynamically loaded withReact.lazy. - A loader is visible during lazy loading.
- Features
- Example form.
- Implemented with
typeless-form
- Implemented with
yarn run start
Start in development mode.
yarn run build
Create a production build.
yarn run prettier
Auto-format code with prettier.
yarn run tsc
Check for TypeScript errors.
yarn run lint
Check for tslint errors.
Install plop npm i -g plop.
Following blueprints are available:
feature- create a blueprint for a new feature. Includes: interface, module, example component.
MIT