Architecture
This course focuses on a standard 3-tier architecture:
- A web frontend
- A REST API
- A PostgreSQL database
The following shows the data flow to persist data:
Web ---> REST API ---> Database
The reverse flow applies to fetch data and display it on the web frontend:
Web <--- REST API <--- Database
Web <-> REST API
This integration is based on JSON and HTTP requests. If JavaScript is disabled in the browser, it leverages HTML form submissions so that the web app works as expected.
REST API <-> Database
To interact with the database, Prisma is the go-to library of choice for this course. It generates a type-safe client which helps ensure we catch bugs before we even test the application.