First install dependencies:
npm installTo run in the development mode with hot module reloading:
npm startThat command opens http://localhost:4004 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 tsnpm run storybooknpm test