From 1a4f00da7f5bb8e5f595b85519a9b55844d43d20 Mon Sep 17 00:00:00 2001 From: Chris Kurzeja Date: Tue, 29 Jun 2021 12:38:47 +0100 Subject: [PATCH] Add initial version of wordpress interview exercise --- .gitignore | 5 +++++ README.md | 14 ++++++++++++++ apiservice/mock-service.yml | 29 ++++++++++++++++++++++++++++ custom_blocks/plugin.php | 6 ++++++ db_data/.gitkeep | 0 docker-compose.yml | 38 +++++++++++++++++++++++++++++++++++++ wordpress_data/.gitkeep | 0 7 files changed, 92 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 apiservice/mock-service.yml create mode 100644 custom_blocks/plugin.php create mode 100644 db_data/.gitkeep create mode 100644 docker-compose.yml create mode 100644 wordpress_data/.gitkeep diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..335f78c --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.idea +db_data/* +!db_data/.gitkeep +wordpress_data/* +!wordpress_data/.gitkeep diff --git a/README.md b/README.md new file mode 100644 index 0000000..f10e046 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# Countingup Wordpress Exercise + +## Overview +Thank you for choosing to interview with Countingup for our Wordpress Developer role. We hope you find the experience +interesting and rewarding. + +Our technical interview takes the form of a pairing exercise, where you will be expected to work with a member of our +team to code a solution to the problem outlined in the exercise you will be given. There will then be a some follow up +questions and an opportunity for you to ask us questions too. Whils the core problem to be solved is relatively trivial, +the exercise is designed for you to showcase your skills and to demonstrate how quickly you can learn something new. + +## Prerequisites +We would ask that you have [docker compose](https://docs.docker.com/compose/install/) installed and that you choose an +appropriate IDE to implement your solution. diff --git a/apiservice/mock-service.yml b/apiservice/mock-service.yml new file mode 100644 index 0000000..7b74178 --- /dev/null +++ b/apiservice/mock-service.yml @@ -0,0 +1,29 @@ + +- name: Send text for number + serveOnly: true + request: + method: POST + serveEndpoint: /api/send-text + body: { number: "+447700900123" } + response: + code: 200 + headers: + content-type: application/json + serveBody: + { + messageId: "123456789", + } + +- name: Send text for unknown number + serveOnly: true + request: + method: POST + serveEndpoint: /api/send-text + response: + code: 401 + headers: + content-type: application/json + serveBody: + { + error: "Invalid number" + } \ No newline at end of file diff --git a/custom_blocks/plugin.php b/custom_blocks/plugin.php new file mode 100644 index 0000000..fececc3 --- /dev/null +++ b/custom_blocks/plugin.php @@ -0,0 +1,6 @@ +