PipeSierra / Newshore.client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NewshoreClient

This project is the client side of the Newshore assessment, it was generated with Angular CLI version 16.0.2.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files. The API side will allow request from http://localhost:4200/ plase keep the suggested port to avoid CORS error from the API.

Development server using a custom proxy

Run npm run start:proxy to set the initial configuration based on the proxy configuration, this will modify the origin request to make it the same as the API source, avoiding CORS error, however the API already accept request from http://localhost:4200/ this is only necesary in case of changing that configuration in the API.

note:

The feature to change the currency is working according to the "normal" conversion, meaning that due to the used conversion values, a small precision will be lost, causing a constant reduction or increase in the original value, i.e. changing the currency from USD to COP and return back to USD, will cause a mismatch based in the inital amount, however, this is an 'allowed' behavior, can be checked performing the same exercise here: google.com/finance/USD-COP

The Currency feature is reling on an external API to enhance its functionality. Please be informed that the credits, rights, and ownership of the API content belong solely to their respective owners. While every effort is made to ensure seamless integration and reliable performance, it is important to acknowledge that any failures, disruptions, or inaccuracies encountered with the API's functionality are beyond my control and I cannot be held responsible for such occurrences.

image

About


Languages

Language:HTML 91.5%Language:TypeScript 8.2%Language:SCSS 0.3%