Week 5

Overview

The focus this week is:

  • Exposing server-side web API endpoints
  • Using APIs on the client-side
  • Consuming web APIs created by other developers

We'll expose and consume web APIs and be using this to make even more powerful React interfaces.

Concepts

  • Web APIs
    • Scalable route structuring (Express.js)
    • URL route params (/widgets/:id)
  • Performing client-side rendering of API data
    • Issuing client-side requests
  • Testing with vitest
    • Client-side - react-testing-library, nock
    • Server-side - supertest, db mocks