Hello! Thank you for your interest in joining our back end engineering team at Stylindex :)
We ask all candidates to complete this short exercise to help us evaluate their suitability for the roles we are recruiting for. We recommend spending between 2 and 4 hours. You will have an opportunity to discuss your solution, and the choices you made at the next interview stage.
Create a simple GraphQL API that fetches data from external storage
- Fetch data from
https://storage.googleapis.com/development-data/recruitment/pokemons.json - Root query should contain two fields:
pokemonsandpokemon - Field
pokemonsshould return a collection ofPokemonobjects - Field
pokemonsshould accept an optional argumentfirstand return only the firstnpokemons - Field
pokemonsshould accept an optionalsortargument that allows sorting pokemons by name (both ascending and descending) - Field
pokemonshould accept eithernameoridas argument, and retrievePokemonobject by name or id
A good solution will
- satisfy the acceptance criteria
- have good test coverage
- use appropriate libraries
- be production ready
Create a simple scraper that scrapes books from http://books.toscrape.com/
- Scraper retrieves all 1000 books from website
- Each book should contain at least following data:
title,rating,price,description,category - Scraper should be able to output data in either
jsonorjsonlinesformat
We use Scrapy for scraping, but you are free to use libraries/framework that you are most comfortable with.
A good solution will
- satisfy the acceptance criteria
- use appropriate libraries
- be production ready
Please put your solution on a repository hosting service such as GitHub or Bitbucket and don't forget to include a README file to tell us how to build and run the application :)