GithubHelp home page GithubHelp logo

bxfy9pgue5fcs9yd's Introduction

API Interview Question V2 - Refayat Haque - "Senior Backend Engineer" candidate - Toronto, Ontario, Canada

Files:

  • lambda_function.py
    • Backend logic carrying out quote processing based on requests made from client-side (requests to lambda function are in the form of event objects/dictionaries)
    • I.e., the lambda function is what calculates the quote based on the data coming in from the client-side forms
  • src/Input.js
    • Frontend logic and data capture is done here, frontend logic doing things like ensuring that the user cannot fill out more than one Pricing form (e.g., cannot fill out both Standard Pricing and Staggered Pricing)
      • Other frontend logic example includes blocking out the flat fee discount if the percentage discount is specified, and vice versa, in the Standard Pricing form

Documentation:

  • "The flat fee for storing a single item is $20."
    • AWS Lambda (lambda_function.py) has this value assigned to variable flat_fee
  • "Customer A will receive a 10% discount."
    • Use either Standard Pricing or Staggered Pricing and submit form with % discount and number of items
  • "Customer B stores large items, and will be charged at $1 per square foot."
    • Use either Standard Pricing or Staggered Pricing and submit form with number of items and Sq. ft. - Area occupied by large and/or fragile item(s) and $ - Cost per sq. ft.
  • "Customer C is to be charged 5% of the value of the item being stored."
    • Use Value-Based Pricing and submit form with % of item(s) value as storage fee and Total value of item(s)
  • "Client D would like a 5% discount for the first 100 items stored, 10% discount for the next 100, and 15% when they store over 200 items, and be charged at $2 per square foot."
    • Use Staggered Pricing and submit form with Sq. ft. - Area occupied by large and/or fragile item(s) and $ - Cost per sq. ft.
  • "For example, another customer could receive a flat $200 discount when their monthly bill reaches $400."
    • Use Standard Pricing and submit form with Discount on monthly storage fee (flat), Conditional discount trigger and Total number of items stored

bxfy9pgue5fcs9yd's People

Contributors

refayathaque avatar

Watchers

 avatar  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.