Important
Node.js version >= v18.17.0 is required. You can use nvm to install correct node version.
## install the dependencies
npm install
## start development server
npm run dev
## detect all linting issues
npm run lint
## fix all linting issues
npm run lint:fix
## run unit tests
npm run test
## run unit tests in watch mode
npm run test:watch
You can view the app in your browser at http://localhost:3000.
Note
This app uses Commitizen cli to enforce AngularJS's commit message convention.
We have used Husky to override the prepare-commit-msg
hook and trigger the Commitizen cli.
## go to main/stage/dev branch
git checkout main
## create your feature branch
git checkout -b feat/my-branch
## make necessary changes and stage them
git add .
## commit your changes
git commit # it will trigger Commitizen cli for generating commit message
Note
This app uses the new Next.js App Router.
awesome-qa-tool
|-- layouts β page or root layouts
|-- public β contains assets like img, fonts, etc
|-- components β reusable components
|-- app β routes and pages
|-- seo β app meta data
|-- config β app config / env variables
|-- theme β app theme or global styles
|-- helpers β helper functions
|-- store β redux store
| |-- reducers β reducers/slices/features
|-- types β types & interfaces
|-- hooks β reusable hooks
|-- modules β feature centric components, helpers, etc which can reused all across the app
|-- views β building block of `app/pages`
|-- e2e-tests β Playwright tests
Note
We have unit, integration and e2e tests for this app.
## run unit tests
npm run test
## run unit tests in watch mode
npm run test:watch
Note
E2E Tests are powered by Playwright. You can also setup VS Code with Playwright for easy execution of tests.
## install browsers
npx playwright install
## run tests
npx playwright test
stage
β stagemain
β production
The app is hosted on AWS and deployed using AWS Amplify
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.