-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi, thanks for creating this. Very interesting project. I'm interested in looking at cross-platform code generators that can work with many languages that are hackable and I can contribute to. So far the best ones I've found are implemented with GraphQL (see https://github.com/prisma/prisma-binding or https://github.com/aws-amplify/amplify-js with AppSync) or a proprietary CLI within a framework (like Angular Schematics - https://www.npmjs.com/package/@angular-devkit/schematics).
While the above projects are much larger in scope, I think GraphQL as a DSL is a very standardized option with rich community support and a huge ecosystem. It also gives the flexibility to generate full-fledged API's integrated with GraphQL. So, rather than just generating classes, it would be possible to generate entire queries, mutations, and subscriptions on top of an API layer that can be packaged to the frontend.
On the frontend, there is another challenge that Zolang can solve: the generators on the backend are usually very different from the generators on the frontend. However, with Zolang, you can just create a separate "generator mapping template" file like shown in your examples and create model classes for the frontend as well with service-level integrations to the backend code. What do you think?