We have a simple API that returns a JSON array. We would like you to use HTML, CSS and Javascript to read the API and display it in an organized way. In addition, you should add in some sort of sorting and filtering mechanic to the front-end. Feel free to use any frameworks you would like to achieve the task.
- / returns all data;
- /random/ returns a random subset of the data. Use this if you need a smaller dataset;
- Para rodar a aplicação vinculando com o db.json, foi instalado um pacote, segue abaixo.
npm install -g json-server
- Para dar start na aplicação segue a baixo o comando:
json-server --watch db.json