An open API service indexing awesome lists of open source software.

https://github.com/daraperini/learning-javascript-alurabooks-register-form

This project consumed an external API to autocomplete data.
https://github.com/daraperini/learning-javascript-alurabooks-register-form

javascript viacep-api

Last synced: 8 months ago
JSON representation

This project consumed an external API to autocomplete data.

Awesome Lists containing this project

README

          

# Alura Books - Register Form

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](https://github.com/daraperini/learning-html-css-alurabooks). 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](https://formulario-cadastro-alurabooks.vercel.app/).

## Used tools:

* 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)*

#

# Alura Books - Formulário de Cadastro

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](https://github.com/daraperini/learning-html-css-alurabooks), 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](https://formulario-cadastro-alurabooks.vercel.app/).

## Ferramentas utilizadas:

* JavaScript
* API ViaCEP

*Como o layout da página foi fornecido pela escola, as imagens da página podem não estar disponíveis.*