Hacker News new | ask | show | jobs
by mvila 2067 days ago
By default, nothing is exposed. To make an attribute or a method accessible from the frontend, it must be explicitly exposed by using the `expose()` decorator.
1 comments

Ah thanks for clarifying. Generating schemas and APIs from @annotations / @decorators is a well established technique. How does that remove four layers from the tech stack?
In a nutshell:

- The frontend is "inherited" from the backend so there is no need to build an API server and an API client.

- The database is abstracted away by an ORM.

- The user interface can be encapsulated into the domain model.

If you are interested, you can read this article for more details: https://dev.to/mvila/full-stack-development-should-be-easier...

What sort of tech stack do you run in production?
Any Node.js environment can run the backend. As for the database, Liaison supports only MongoDB for now, but more databases are expected to be supported in the future.