Git Product home page Git Product logo

merim-exercice_itw's Introduction

Merim Group Interview Exercise

Description

I completed this exercise keeping in mind to demonstrate the elements we discussed during the interview. The use of 'Types', 'Interfaces', Services, etc. I did my best, in my opinion, to adhere to the best practices I learned in TypeScript, like using constant files, refactoring the basketcomponent, don't use 'any' types, put logic in services and not in templates/html file ( round the price to maximum two decimal).

Features

  1. Product Display: The product list is displayed with their names and their initial prices in USD.

  2. Price Update: A button allows you to get the converted prices and show it based on the current exchange rates through a call to the "exchangerate-api".

Technologies Used

  • Angular
  • Flexbox for responsive design, which can be further optimized.
  • API - exchangerate-api - for fetching current exchange rates.

How to Run the Project

  1. Clone this repository.
  2. Navigate to the project directory and run npm install to install dependencies.
  3. Run ng serve or npm start to start the development server.
  4. Open your browser and go to http://localhost:4200/.

Points to Note

  • For interview-related reasons, the API key for the exchange rate API isn't stored in an environment file or a file added in the .gitignore. I'm aware this isn't a best practice, but I did this to facilitate the project's analysis.

merim-exercice_itw's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.