In the given assignment we suggest you to process an automatically generated JSON file with some data and calculated some stats.
- Clone this repository.
- Create a new branch called
true_dev
. - Create a pull request from your
true_dev
branch to the master branch. - Reply to the thread you're having with our HR department telling them we can start reviewing your code
Json data found in this repo.
- Count the number of unique recipe names.
- Count the number of occurences for each unique recipe name (alphabetically ordered by recipe name).
- Find the postcode with most delivered recipes.
- List the recipe names (alphabetically ordered) that contain in their name one of the following words:
- Potato
- Veggie
- Mushroom
- The application is packaged with Docker.
- Setup scripts are provided.
- The submission is provided web
API
. Functional requirements are presented querable endpoints. - It should be possible to (implementation is up to you):
a. provide a custom fixtures file as input
b. provide custom recipe names to search by (functional reqs. 4)
Generate a JSON file of the following format:
{
"unique_recipe_count": 15
}
{
"count_per_recipe": [
{
"recipe": "Mediterranean Baked Veggies",
"count": 1
},
{
"recipe": "Speedy Steak Fajitas",
"count": 1
},
{
"recipe": "Tex-Mex Tilapia",
"count": 3
}
]
}
"busiest_postcode": {
"postcode": "10120",
"delivery_count": 1000
}
"match_by_name": [
"Mediterranean Baked Veggies", "Speedy Steak Fajitas", "Tex-Mex Tilapia"
]
}
We expect that the assignment will not take more than 2-3 hours of work. In our judgement we rely on common sense and do not expect production ready code. We are rather instrested in your problem solving skills and command of the programming language that you chose.
It worth mentioning that we will be testing your submission against different input data sets.
General criteria from most important to less important:
- Functional and non-functional requirements are met.
- Prefer application efficiency over code organisation complexity.
- Code is readable and comprehensible. Setup instructions and run instructions are provided.
- Tests showcased are a plus (no need to cover everything).
- Supporting notes on taken decisions and further clarifications are welcome.
- Avoid use of web frameworks.