You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
APIs are a contract between the frontend and backend. This means that the client and server should agree on the shape of every API. In order to ensure that the frontend and backend agree on the API shapes without duplicating code, it makes sense for API types to be shared between the frontend and backend.
Implementing this will involve the following steps:
Edit the build pipeline to accommodate shared code between the client and server directories.
Create base types for each database table and have the model types inherit from the shared base types.
Create types for each API's return shape by composing the base types, and use these types in both the frontend services (which call the API) and the backend controllers (which serve the responses).
The text was updated successfully, but these errors were encountered:
APIs are a contract between the frontend and backend. This means that the client and server should agree on the shape of every API. In order to ensure that the frontend and backend agree on the API shapes without duplicating code, it makes sense for API types to be shared between the frontend and backend.
Implementing this will involve the following steps:
client
andserver
directories.The text was updated successfully, but these errors were encountered: