This project was generated using Nx.
Run npm i
Run nx serve backend-nest
for the backend NestJS server, will be served on http://localhost:3333/
.
Run nx serve frontend-react
for the frontend React application. Navigate to http://localhost:4200/
.
Filtering is done on the server, server can get languageIds
query param like: ?languageIds=1,2,3,..
parse it, and return results to the frontend that consumes it.
There is an advantage with server side filtering because:
1. Not all data is found on the frontend application, especailly when working with large amounts of data
2. It can be huge performance issue to make it on the frontend
3. Filtering on the server makes sense becasue logic is on server and no matter which application asks to filter by languageIds
- its exposed through the API
backend-nest
- NestJS Server
frontend-react
- React Frontend
data-access
- Library used as a fetch-layer, exposes API services for data access
shared-models
- Library that exposes shared models between the applications