If you use MacOS, consider using Brew to install these dependencies. Or feel free to use Docker to run this Repository.
$ cd api
$ composer install
$ php artisan serve --port=8000
With the above, take note of your available routes
The Cases Endpoint supports page
and per_page
query string parameters
$ cd app
$ npm install
$ npm start -- --port 9000
With the above, take note of your availble route
Fork this repository to a personal public repository on GitHub.
This personal repository will be provided to MYBOS at the end of the Exam.
Please feel free to customise all logic and the provided routes to meet the requirements of this exam.
The objective of this task is to create 2 components that are data bound to the provided API Endpoints
Using the following design from Figma, please create the required Components.
Note: Please log in to a Figma account to get access to Ruler tools and other features to help produce the design
The above Figma design is for the MYBOS Cases Module. Everything you see there is as intended for our product ready App. Feel free to imitate this design to your best ability in the process of completing this Exam.
Please note that we only require the Exam Components (the highlighted frame in Figma) in this test
MYBOS - Figma Design - Required Components
However, any attempt to complete the design would be viewed favourably.
NOTE: It is important to understand that in the Exam, the API is read only. That is, there are no post/update/delete requests included. Please imitate the design to your best ability.
The first component is to create a paginated Grid List. This component should be bound to the following API Endpoint
GET http://localhost:8000/api/cases
Please note, you can set the per_page
and page
values using query string parameters
GET http://localhost:8000/api/cases?per_page=20&page=2
Clicking on a row within the Grid List should direct the browser to the second Component/Route.
The second component is a Cases Details page. This component should be bound to the following API Endpoint
GET http://localhost:8000/api/cases/30
Please feel free to utilise any publicly available components or assets that you feel will help produce the desired outcome.
Any packages installed should be listed here in your version of the Projects README.md file.