https://github.com/rodrigo-dev7/consuming-api
Aplicação irá consumir api local e externa
https://github.com/rodrigo-dev7/consuming-api
consuming-api html javascript lite-server
Last synced: 24 days ago
JSON representation
Aplicação irá consumir api local e externa
- Host: GitHub
- URL: https://github.com/rodrigo-dev7/consuming-api
- Owner: Rodrigo-dev7
- Created: 2020-09-06T19:03:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-06T19:05:25.000Z (over 4 years ago)
- Last Synced: 2025-02-08T08:32:56.341Z (3 months ago)
- Topics: consuming-api, html, javascript, lite-server
- Language: HTML
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Consumir API
## API
- [x] Iniciar o projeto `npm init -y`
- [x] Instalar as dependências `npm i express nodemon cors axios`
- [x] Criar uma rota para acessar a API
- [x] Server a API
- [x] Habilitar o CORS
- [x] Habilitar o nodemon para reiniciar o server## frontend
Consumir API
- [x] Utilizar fetch para consumir nossa API backend
- [x] Explicar Promise - Async/await
- [x] Usar try/catch
- [x] mostrar a resposta na tela## backend
Consumir API
- [x] jsonplaceholder
- [x] usar axios
- [x] semelanças entre axios a fetch
- [x] usar try/catch