3 ms·
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.
by mvila 6y 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.
- jart 6y agoAh 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?
- mvila 6y agoIn 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-2i2p https://dev.to/mvila/full-stack-development-should-be-easier...