Skip to content

Teleprompter Candidate test

Notifications You must be signed in to change notification settings

assettv/teleprompter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teleprompter Candidate test

This test should take around 2 hours.

Setup

  • Fork Repo
  • Set up a new Drupal 9 instance.
    • DDEV is quite easy to set up, otherwise docker.
  • Clone teleprompter into modules/custom
  • Enable Teleprompter Module
    • Ensure dependancies are met: restui, views

Essential

  • Enable REST on endpoint on ('/api/v1/teleprompter/question') as it will currently provide a 500
  • Allow Basic Auth on the endpoint
  • Accept a POST request from Authenticated Users
  • Ensure only alpha characters(Max 255) are present in the "question" field and that the only field present is "question"; otherwise fail the request with 400 and return appropriate message
    • Format example can be found in /tests/question.json
  • Create a question entity
    • Set the Status to "show"
    • Return a 201 with appropriate message
  • Update Teleprompter View to include the User's First name and Surname
  • Add the changes to config/install

Bonus

  • Write some appropriate unit tests
  • Update View to automatically refresh every 30 seconds(AJAX)
  • Sanitise the question by making the first character capitalised and the last character is "?" if not present.
    • Create a service to perform sanitisation

About

Teleprompter Candidate test

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages