-
Install Node https://nodejs.org/en/download/package-manager
-
Install Angular CLI
npm install -g @angular/cli@14
-
Install Nestjs CLI
npm install -g @nestjs/cli
-
Fork the repository and clone it to your laptop
-
setup frontend
cd test-automation-engineer
cd frontend
npm install
ng serve
visit localhost:4200
- setup backend (Open new terminal)
cd test-automation-engineer
cd backend
npm install
nest start --watch
visit localhost:3000
-
Create a unit test for Product Service frontend/src/app/products/products.service.spec.ts
-
Create a unit test for Update Product Component frontend/src/app/products/update/update.component.spec.ts
-
Create a cypress e2e test to test the following:
- As a user I am able to edit my product
- As a user I am able to place an order
-
Create a unit test for Product Controller backend/src/products/products.controller.spec.ts
-
Create a unit test for Product Service backend/src/products/products.controller.spec.ts
-
Write an integration test to test for:
- create product
- update product
- delete product
note: swagger api available at localhost:3000/api
- after you have completed and tested your work, please submit your repository to below email: [email protected]