Skip to main content

Getting Started

Dependencies

DependencyVersionInstallDescription
nvmAny versionhttps://github.com/nvm-sh/nvmNode Version Manager
Yarn> 1.22.18https://yarnpkg.com/lang/en/docs/installNode Package Manager

Environment Variables

Copy the contents of .env.sample. into .env.development.local for local development and .env.production.local for production builds and deployment. Reach out to someone on the team for more information.

Install and Switch Node Version

nvm install   // only required if you don't already have the correct version of node install via nvm
nvm use // switch to the correct version of node. Reads from the .nvmrc file

Install NPM Dependencies Using Yarn

yarn install  // install dependencies

Run The App

yarn start    // runs the dashboard locally

Available Commands

CommandDescription
yarn installInstall dependencies
yarn startStart development server
yarn buildbuilds client for production deployment
yarn testRun test suite
yarn lintRun files against linter
yarn prettier:formatAuto format all code with prettier
yarn prettier:checkCheck code formatting with prettier
yarn commitRun a commit prompt - uses commitizen
yarn storybookRuns Storybook
yarn storybook:buildBuilds storybook for deployment
yarn storybook:deployDeploy storybook
yarn deployDeploy to firebase
yarn convert-svgs-to-componentsConvert SVG icons in ./src/views/components/atoms/Svgs to React components
yarn convert-icons-to-componentsConvert icons in ./src/views/components/atoms/Svgs to React components
yarn cy:openOpen Cypress UI
yarn cy:runRun Cypress tests in headless mode
yarn cy:ciRun Cypress tests in TeamCity CI server
yarn cy:run-visualsRun cypress visual tests in headless mode
yarn cy:update-visualsUpdate visual regression test baseline iamges