Giter VIP home page Giter VIP logo

laravel-code-challenge's Introduction

DEMO

Access the demo site on Heroku here https://tranquil-taiga-84689.herokuapp.com/

  • DB Migrations are in place
  • Table upgrades (issue #1 and #2) handle new installation as well as upgrading an existing installation
  • Averaging widgets are done through the api interface and display varying methods of DB facade querying

Setup

  • Clone repository. (Do not fork.)
  • Copy .env.example to .env and configure database settings.
  • Run the following commands to get a functional and seeded application:
    php artisan key:generate
    php artisan migrate:fresh
    php artisan db:seed
    npm install
    npm run dev
    php artisan serve
    

Code Challenges

The objectives outlined below should be completed and any resulting code should follow the code style of the project and have doc-blocks where applicable.

  • Modify Owners table to include columns for number of addresses and cars associated with each owner.

  • Modify Addresses table to include concatenated owner name and number of cars associated with each address.

  • Modify Cars table to include concatenated owner name and address associated with each car.

  • Build simple and reusable view/edit Vue.js components for owners, addresses, and cars and link them to the action buttons in each table. The displayed data should include associated entities. (Addresses and cars for the owner. Owner and cars for the address. Owner and address for the car.)

  • Build a simple and reusable delete Vue.js component for owners, addresses, and cars. This should include a confirmation prompt.

  • Create a route for owners that uses the DB facade (not Eloquent) to return the average number of addresses and cars, respectively, per user and add a component that displays the information above the table on the owners page.

  • Create a route for addresses that uses the DB facade (not Eloquent) to return the average number of cars per address and add a component that displays the information above the table on the addresses page.

Share Your Solution

  • Upon completion please create and share a git repository on a platform of your choice.

laravel-code-challenge's People

Contributors

ddareucf avatar

laravel-code-challenge's Issues

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.