Full Stack engineering task: Backend + Frontend Contact: [email protected]
webApp: contains all the files for the front end Angular application. server: contains the files for the backend NodeJS application.
About Unit testing the backend application:
- The NodeJS application first downloads the data from the api: http://mock-shirt-backend.getsandbox.com/shirts and stores it in a JSON file.
- The application tests whether it returns response 200 to the call http://localhost:5000/products.
- The application also tests whethere it returns the data in the correct format required.
Features of the Frontend Application:
- The shopping cart state persists page reloads.
- A shopping cart modal pop up to change the quantity of items or remove them and check the total price of the cart.
- Cart Icon in the header to display the total number of items in the cart.
Process to get the application running: a. Get the server running:
- clone the repo in your local computer.
- run: cd server.
- run: npm install
- run: npm run start (this will start the server at port 5000).
- Optional: To test the backend server, run the command "npm run test".
b. Get the frontend application running:
- go to the root directory of the project.
- run: cd webApp
- run: npm install
- run: ng server (this will start the angular web application at http://localhost:4200/)
Screenshot of the Frontend Application: