Code Monkey home page Code Monkey logo

task.rates.ca's Introduction

Firstly, I would like to say sorry because I tried to go beyond in doing task for designing/backend and also, checked Rates.ca website and replicate few design items into this task.

The following steps to follow in order to run this task:

  1. Copy & paste the source code into "htdocs/task.rates.ca/"
  2. MySQL DB import
    • Create DB with name "ratesca_task"
    • import the db "ratesca_task.sql" copy that is present into source code.

Below are the URLs

Home - http://localhost/task.rates.ca/ Quote List - http://localhost/task.rates.ca/quote/list/ New Quote - http://localhost/task.rates.ca/quote/create/ Thank You - http://localhost/task.rates.ca/success/thank-you/

Notes:

  1. I have divided the usage of Vanialla JavaScript and jQuery into this task. (I have read the job description properly in which it is mentioned to use JavaScript with/without jQuery so I used both)
  • Designing with Vanilla JavaScript usage
  • Backend with jQuery usage
  1. DB is totally flexible since objects / array with objects are directly stored into DB. There is no need to make changes into DB structure while making changes of adding / removing input fields from form.

  2. MVC structure code flow works as:

Webpage -> JS file -> AJAX request pass to request.php file -> controller.php file -> backend.php file

Additional items that can also be done in Quote feature enhancement:

  1. Add pagination / search functionality to Quote List page
  2. Multiple Drivers implementation - In DB, either use the same column "primary_driver_details" and rename to generic term "driver_details" or create one column "secondary drivers". If we are using the existing same column then create a new object key that differentiate primary and secondary drivers info and then store data into DB.
  3. Better UI for "Add Vehicle" as like Rates.ca.

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.