How to run the project locally
npm install --global yarn
- Create project folder and clone files from Git into:
git clone origin git@gitlab.com:<project_name>.git
cd <project_name>
- Install project dependencies (node_modules):
yarn install
cp .env.local.example .env.local
- Run the app in development mode:
yarn dev
REST API
Section AUTH & APPS contains Main application endpoints, while section APP INSTANCE contains Business application endpoints.
Additional commands
- Open Storybook (frontend base UI components documentation):
yarn sb:dev-full
yarn sb:dev
yarn sb:build
yarn sb:preview
- Run code-style check / formatting:
yarn lint
yarn lint:fix
yarn lint:ci
yarn test:unit
yarn test:e2e
yarn test:e2e-ci
cp .env.example .env
yarn build
- Run the built application from a
/dist
folder in production mode:
yarn preview
- Automated releases (new app release in GitLab and increase app version number):
yarn release
yarn release:production
release:production-major
- Update browserslist DB to the latest version (it changes yarn.lock only):
npx browserslist@latest --update-db
- Note:
yarn
automatically calls the postinstall
command,
which generate components web-types for IDE (props autocomplete).
If you need to do this manually, just use the command below:
node .mono/our.library.web-types-gen
Capacitor (iOS & Android apps)
- Update app src after
dist
or capacitor.config.js
file changes:
npx cap copy
npx cap open ios
- Open Android app locally:
npx cap open android
- Sync the app after new capacitor plugin installation:
npx cap sync
- Generate app icons and splash screens (docs):
npx @capacitor/assets generate --assetPath 'public/static/capacitor' --iconBackgroundColor '#FFFFFF' --iconBackgroundColorDark '#111827' --splashBackgroundColor '#F3F4F6' --splashBackgroundColorDark '#1F2937' --ios --android