Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

voicetube/backend-interview-question

Repository files navigation

Backend Interview Test

Build a RESTful-API ecosystem for a to-do list.

Object

In this test, you have to fulfill all exceptions and complete tests successfully. Following rules are your mission:

  1. Follow the Setup, Development Requirement to create your code
  2. Finish the test by following Definition of done

Setup

  1. Create new repository with this template. (Please DO NOT use any words related to VoiceTube)
  2. Run docker-compose up -d --build
  3. Run docker-compose exec app php artisan migrate
  4. Uncomment the lines in routes/api.php and create your class by the route list

Development Requirement

  1. Complete it with Laravel 8, PHP 8, Nginx and MySQL 8
  2. API that modifies data must be protected by tokens
  3. Finish the test with current design pattern.
  4. Follow PSR-12 for coding style.
  5. Do not modify the test cases.

Definition of done

  1. Run docker-compose exec app composer run test
  2. Make all tests passed successfully

API List

  • Get all to-do lists belong to authenticated user, sort by created time
  • Get one to-do list
  • Create one to-do list
  • Update one to-do list
  • Delete one to-do list
  • Delete all to-do list
  • Create one to-do list item
  • Update one to-do list item
  • Delete one to-do list item
  • Login by email and password
  • Generate a new token
  • Get token status

Notice

We highly value the quality of the assignment, and we understand that candidates have their commitments. Hence should you require more information to complete the assignment to the best of your ability, please feel free to let us know.

License

Copyright © 2021 VoiceTube Corporation. All rights reserved.

The source code is licensed under MIT license.