├── README.md ├── app.js ├── app.php ├── app.py └── products.json /README.md: -------------------------------------------------------------------------------- 1 | ![](https://media.natue.com.br/natuelabs/natuelabs.png) 2 | 3 | # Challenge for Backend Developer 4 | 5 | A customer needs to search in our product catalog (available in this JSON) and he wants to find products that match your food restrictions. 6 | Based on this you will need to develop: 7 | 8 | - a simple API to search products in the .json available; 9 | - it should be possible to search for products by their specifications (one or more); 10 | - it must be possible to order the result by price (asc and desc); 11 | 12 | The test should be done in PHP, Python or NodeJS. We expect at the end of the test, outside the API running, the following items: 13 | 14 | - an explanation of what is needed to make your project work; 15 | - an explanation of how to perform the tests; 16 | 17 | Remember that at the time of the evaluation we will look at: 18 | 19 | - Code organization; 20 | - Object-Oriented Principles; 21 | - Unit tests 22 | - Maintenance; 23 | 24 | To send us your code, you must: 25 | 26 | Make a fork of this repository, and send us a pull-request. 27 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | // Usage: 2 | // npm install http 3 | // node app.js 4 | var http = require('http'); 5 | 6 | var server = http.createServer(function(request, response) { 7 | response.write('Hello Natue'); 8 | response.end(); 9 | }); 10 | 11 | server.listen(8080); 12 | -------------------------------------------------------------------------------- /app.php: -------------------------------------------------------------------------------- 1 |