bhataparnak / VueApp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Insubuy code challenge

This challenge is intended to test your comfort with architecting components and managing state within an application. Please read and follow the instructions carefully as you will be scored based on your ability to follow instructions as well as on your code. In this challenge, you will be building an application allowing users to fill out a quote form to purchase insurance and display the results to the user on submit.

You will be asked to build a site which have the functionality described below. The application server should be running at http://localhost:8080 - if not, run 'npm start'.

You can visit http://localhost:8080/api in the browser to view the documentation for the server api.

The server includes a mocked database, which will hold information about the quote results of your app. Try not to modify the server, if at all possible.

As you complete this challenge, please keep in mind that you will be assessed on the following:

  • Time management
  • Application performance
  • Limiting memory usage
  • App functionality
  • Ability to recreate the mockup to likeness

Please branch out from the master branch like this {firstName-LastName}. Make sure you make frequent meaningful commits on your branch. Once you are ready to submit the code please send us a link to your github branch by replying to the email. You can reach out to us on the email if you have any questions about the challenge.

Scaffolding The Project

The front end implementation of this project has two options. The first is using the existing structure and integrating your front end with it as you would in a single application. To do this, you would need to create a build with Webpack and create the basic structure on your own which would proxy the back end from either a proxy in the package.json or webpack dev server. The second option is to create a completely separate application which references the provided API as third party API. For example, you could use Create React App or Vue CLI to create the project in the client folder provided. Use http://localhost:8080/ in your AJAX requests to the server. This would require two terminals. One for your front end project and one for the back end project provided.


Basic requirements

You will be creating a quote form that takes the following inputs from the user and validates them against the rules mentioned below. On successful submission the user will see a list of insurance plans that have already been mocked in the database. Please note: the input values have no relevance to the result data. The user should see the various plans in an user interface and peform below mentioned actions on them. The user should also be able to compare plans and view them separately in another component.


Quote form

You will create a quote form for the user from the mockup. Points will be given for closeness to the mock up. The form should be responsive across major browsers.

  • Use of any CSS framework is not allowed.
  • You may use SCSS if you are comfortable with preprocessors.
  • The form should contain the following fields and validate against the rules for each. The validations should be shown below the corresponding field.

  • Start Date
    -User can either type or select a date
    -The date should be in MM/DD/YYYY format.

  • End Date
    -User can either type or select a date
    -The date should be in MM/DD/YYYY format.
    -The end date should be after the start date.

  • Policy max
    -Must be a select box
    - 50,000 ( value 50)
    - 100,000 ( value 100)
    - 250,000 ( value 250)
    - 500,000 ( value 500)

  • Citizenship
    -Must be a text box
    -Should not allow numbers or special characters

  • Age/Year
    -Must be a text box
    -User can enter either birth year or age
    -User cannot be more than a 100 years old

  • Mailing State
    -Must be a text box
    -Should not allow numbers or special characters
  • All fields are mandatory. Form should be validated only on submit. The errors should go away once the user starts typing.

    All the fields should get reset when you hit the reset button.


    Results page

    On successful submission the user should see a list of various insurance plans. The styling aspect of this module to upto the challenge taker. Make sure it's aesthetic and responsive. Emphasis is on the functionality, so focus on that first. The user should see the data in a format deemed fit by the challenge taker. The user should be able to do the following actions.
  • Sort by Price
  • Sort by Name

  • Filter by Policy Max
  • Filter by BestSeller
  • Filter by Type
  • Filter by Section

  • The user should also be able to view the data in

  • List view
  • Grid view

  • Design implementation is upon you.


    Modal

    The user should be able to select a maximum of 4 plans from the list and compare them. The compare modal should be a separate component that displays the data. A minimum of 2 plans are required to compare. Design is on you.


    Extra credit

    • You can use any framework of your choice.
    • Bonus points for minimal use of external libraries.
    • Bonus points for using Vue2.js ( We use Vue2.js ).
    • Bonus points for clean indented and well commented code.

    About


    Languages

    Language:JavaScript 54.7%Language:HTML 39.3%Language:Vue 5.0%Language:CSS 1.0%