Hacker News new | ask | show | jobs
by _bxg1 2218 days ago
> One of my features includes the ability to easily share libraries/models across the front end and backend. E.g., if you're designing an API, you can import the same model file to both the front end and back end, ensuring no divergence between both sides as the API is redesigned.

To be fair this applies to any case where you have the same language on the front and back, which was one of the main motivations for Node in the first place

1 comments

As far as sharing JS library code yes, but the baked in typescript support + nx CLI add a lot in terms of usability.

1. nx g @nrwl/workspace:lib data, 2. Modify the typed models/interfaces. 3. Import to backend + front end.