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.
- Host: GitHub
- URL: https://github.com/daraperini/learning-javascript-alurabooks-register-form
- Owner: daraperini
- Created: 2023-09-25T13:53:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-12T18:08:18.000Z (over 2 years ago)
- Last Synced: 2025-10-14T16:04:00.553Z (8 months ago)
- Topics: javascript, viacep-api
- Language: HTML
- Homepage: https://formulario-cadastro-alurabooks.vercel.app
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.*