Code Monkey home page Code Monkey logo

partha-laravel-assignment's Introduction

Developer test for Guild / Laravel

Given

  • You have a loan application
    • The loan application has 2 borrowers
      • One borrower has a job
      • The other borrower has a job and a bank account

Requirements

  • Fork this git repository and create a feature branch for your changes
  • Install a fresh copy of Laravel
  • Create some simple database tables to represent the above scenario
    • By simple I mean just the basics of what's really needed for this exercise
    • For example, the borrower should have a name, but we don't need date of birth, social security number or contact information for this exercise
    • Though I would like to see the standard date fields as part of the design (ie. created, updated, deleted)
  • Write a query (or queries) that shows the total annual income and bank account values for the application
  • Expose an API end point to show the results of the query (or queries)
    • All output should be in JSON format
  • Write a unit test on at least one method in the project
    • I'm deliberatly keeping this requirement vague to give you freedom to decide what to test and how
  • Update this README file with any installation instructions needed so we can clone and run your code
  • Create a Github Pull Request against this repo with your changes

What we're looking for

  • Your general skill-set with PHP and MySQL
  • Your general architecture skills
  • How well you know your way around Laravel
  • Your ability to write unit tests
  • Coding style
  • How well you adhere to the PSR standards
  • Usage of design patterns in your code

Installation instructions

  • Install Laravel and make the .env changes needed to connect to db
  • create the database that matches what is in the .env file
  • Run the migrations and seeders using 'php artisan migrate:fresh --seed '
  • from application root (directory of loan-app) run 'php artisan serve' . Should run on http://127.0.0.1:8000
  • Open Postman
  • Create a new GET request that goes to http://127.0.0.1:8000/api/v1/user/bankaccount
  • Should see a response with two JSON objects with income and balance for each user
  • The tests are in the tests directory.

partha-laravel-assignment's People

Contributors

steveoliver avatar

Watchers

James Cloos 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.