Usage: create fast prototypes or start a new project (SPA).
- Material UI toolkit (mui v6)
- Client-side routing (react-router v6)
- react-query + devtools
- Login and Main page skeletons. Fake API service is used.
- FSD folders (shared, entities, features, widgets, etc). Aliases configured.
- axios
- Custom font
- Custom favicon
- i18n support via i18next
- react-hook-form + yup for forms
- date-fns
- material-react-table
- notistack for toast notifications
- react-day-picker for date pickers
- promisified dialogs
- SASS for addition to css-in-js
- ESLint configured
- Prettier
- Vite
- vitest
- Unit/integration testing setup via react-testing-library
- Storybook, including publication on Chromatic
- Can mock some API requests in the development mode
- Can be published on vercel for quick demo
First install dependencies:
npm installTo run in the development mode with hot module reloading:
npm startThat command opens http://localhost:4000 page in your browser.
npm run buildSee "dist" folder for results.
To run the production build:
npm run previewThis frontend application can be built for staging or production server.
To build for the staging run:
npm run build -- --mode stagingTo build for the production:
npm run build -- --mode productionor simply:
npm run buildOn different servers the app can use different settings (different API URLs, for example).
Use the following env files at the repository's root to specify those settings:
- for staging -
.env.staging - for production -
.env.production - for local development -
.env.development
Run linting:
npm run lintRun type checking:
npm run tsRun:
npm run storybookRun:
npm test