Brief Overview
- What,
- Why,
- Challenges,
- Learnings,
- Upcoming features.
- git
- NodeJS v18 - Recommend installing
nvm
to manage node install - npm
- VSCode or an IDE of your choice
- REACT_APP_VERSION=GITHUB_RUN_NUMBER (added upon build in GitHub action in dev and prod)
- REACT_APP_STAGE=LOCAL
- REACT_APP_CHALLENGE_BASE_URL=https://3q82hpcgp1.execute-api.ap-southeast-2.amazonaws.com/prod
- REACT_APP_CHALLENGE_API_KEY=(API key here)
npm i
- to install packages/dependencies
-
npm run start
- to run project on port 3000 -
npm run lint
- to lint your files using ESLint -
npm run lint:fix
- fix problems using ESLint
npm run test
- to run jest tests with watchnpm run test:coverage
- to run jest tests with coverage
Ensure application is started before running E2E tests In cypress.config.ts find REPLACE_ME_WITH_BASE_URL and replace it with your localhost URL and REPLACE_ME_WITH_END_POINT_URL_HERE with backend API
npm run e2e
- to run cypress e2e tests with UInpm run e2e:cli
- to run cypress e2e tests with no UI
npm run build
- build your project