- React
- Vite
- Tailwind
- React Router
- Eslint
- Prettier
- Husky
- lint-staged
- editorconfig
- Cypress with code coverage
⚠️ We recommend using Visual Studio Code as well as the extensions for Prettier, Eslint and EditorConfig for VS Code for development.
⚠️ We recommend using Node version 16.x. Check nvm.
npm ci
to install dependencies.- Copy contents of
.env.dist
into a.env
file and populate it. Ensure that environment variables have the prefixVITE_
.
For example:
If your application requires a API_BASE_URL, name the enviroment variable "VITE_API_BASE_URL" in the '.env' file.
npm run build # Create a production build
npm run start:prod # Run app in production
npm run start:dev # Run app in development
npm run test:ui # Run UI tests in headless mode
npm run test:ui:dev # Run UI in browser mode
npm run lint # Run linter
npm run format # Run formatter
Files that are not tested are displayed in the final cypress report as having "empty" coverage. They should display 0% coverage.