Visão Geral
Este curso foi desenvolvido para profissionais que desejam aprender, na prática, como integrar aplicações React com APIs modernas.
O aluno aprenderá desde o consumo de APIs REST até a criação de uma API completa usando Node.js e a utilização de APIs internas com Next.js.
O curso combina teoria e prática contínua, garantindo que cada participante desenvolva aplicações reais baseadas em comunicação entre frontend e backend.
Conteúdo Programatico
Module 1 — Introduction to APIs
- What is an API?
- REST vs. GraphQL
- HTTP methods (GET, POST, PUT, DELETE, PATCH)
- Status codes
- JSON format and serialization
- Tools: Postman, Insomnia, Thunder Client
Module 2 — Consuming REST APIs in React
- Using
fetch()
- Using Axios
- Handling async/await
- Error handling and promises
- Mapping API data to React components
- Pagination and filtering via API
- Handling loading and empty states
- Managing environment variables (.env)
Module 3 — Authentication in React Using APIs
- Token-based authentication
- JWT basic concepts
- Login and logout flow
- Storing tokens securely
- Protected routes
- Refresh token concepts
- Testing authentication with Postman
Module 4 — Building a Backend API with Node.js + Express
- Setting up a Node.js project
- Creating routes, controllers and services
- Creating a CRUD API
- Connecting the API to a database (MongoDB or PostgreSQL)
- Handling errors and middlewares
- Implementing JWT authentication in the backend
- Organizing backend folder structure
- Testing the API endpoints
Module 5 — Using the Backend API in React
- Connecting React to the custom API
- Creating CRUD screens (list, create, edit, delete)
- Uploading files from React to API
- Handling forms with React Hook Form
- Global state options: Context API or Redux Toolkit
- Real-time updates with WebSockets (optional)
Module 6 — API Routes in Next.js
- Introduction to Next.js
- Creating API routes in
/api
- Server Actions overview
- Using Next.js as full-stack framework
- Calling API routes from client-side components
- Connecting Next.js API to databases
Module 7 — Advanced Integrations
- Consuming GraphQL APIs
- Integrating Firebase as backend
- Using external APIs (GitHub, Google Maps, etc.)
- Debounce and throttling for API calls
- Caching and performance optimization
- Using React Query / TanStack Query
Module 8 — Final Project
- A real full-stack application React + API containing:
- User authentication with JWT
- CRUD operations
- Upload and download of files
- Protected routes
- Responsive UI
- Deployed version in the cloud (Vercel + Render or Railway)