- 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
- The loan application has 2 borrowers
- 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
- 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
- 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.