This project was created during the Alura's class JavaScript: consuming and processing data from an API. The layout was provided in the beginning of the class and was inspired by the project Alura Books. I used an external API for CEP (Brazilian Zipcode) data to make the autocomplete of other location's data needed for registering after the insertion of the CEP by the user. Initially I used fetch and the .then() method for the implementation. Afterwards I refectored the code using async/await. Both versions are available in the scrip.js file
To see the final result, click here.
- JavaScript
- API ViaCEP
As the layout was provided by the school the images of the page might not be available.
(Alura is a Brazilian technology school and for acessibility reasons this code is in Portuguese)
Esse projeto foi desenvolvido a partir do curso JavaScript: consumindo e tratando dados de uma API, da Alura. Com o layout base já pronto inspirado no projeto Alura Books, utilizei uma API externa de CEPs para realizar o autocomplete dos dados do local a partir da inserção do CEP pelo usuário. Primeiramente utilizei fetch com o método .then() para implementação das funcionalidades. Depois, refatorei o código utilizando async/await. As duas versões estão disponíveis no arquivo scrip.js.
Para acessar o resultado final da página, clique aqui.
- JavaScript
- API ViaCEP
Como o layout da página foi fornecido pela escola, as imagens da página podem não estar disponíveis.