The code challenge is split into two parts the first part is a simple backend api endpoint using laravel, showing you can leverage Laravel Collections to create an elegant solution to the following problem. Create a controller method that accepts a Github username, and returns that user’s “Score” based on the following rules.
- PushEvent = 10 points
- PullRequestEvent = 5 points
- IssueCommentEvent = 4 points
- Any other event = 1 point And return:
{
data: [
{
type: "PushEvent",
repository: "spatie/fractalistic"
date: "2021-09-01T10:05:40Z",
points: 10
},
],
score: 10,
}
i started the full stack application for you. It is desiged with some key functional areas:
View the READMEBackend.md within ./backend for more details.
View the READMEFrontend.md within ./frontend for more details.