- NVM installed, it will help you install the target node verson which this project uses. See more at https://github.com/nvm-sh/nvm.
- [Optional] VS Code should be use as your IDE in order to make coding environment easier and faster.
- [Optional] ESLint and Prettier are the
linterand theformatterused in the projects. You can install those plugin for VS Code so that they are automatically used.
- Go to project
- Run
nvm useif your nvm does not automatically switch node version. - In case it raise error, please run
nvm installto install the target Node and runnvm useagain. - Create
.envfile and copy content from .env.EXAMPLE to that. - Run
yarnto install package dependencies. All packages will be installed intonode_modulesfolder. - Run
yarn startto start the local development app. - Open http://localhost:8080 to view it in the browser.
- Run command
yarn testto run all the unit tests.
- Run command
yarn lintto check code linter & formatter. In order to automatically format code, runyarn lint:fix.
You can take a look at the package.json file, in the scripts block to see all predefined scripts. You can run any of them by calling yarn [script_key] such as yarn start Some of them are:
build-production&build-staging: Script to build webpack for serving as production and staging.start: Start local environment server.test: Test all unit test suites.lint&lint:fix: check code linting and fix them.itest&itest:open: Run integration tests with non-interactive or interactive mode. See more info in the below secion.
- For naming css color please take a look at the file CSS development guide
- For using circeCI please take a look at the file Circleci
Please see docs/e2e.md for more information about integration/e2e testing.