-
Notifications
You must be signed in to change notification settings - Fork 73
Graphback templates improvments #2035
Comments
/cc @craicoverflow, @machi1990 |
Very good issue. Thank you for opening it @wtrocki I think in this template we can push for a "certain" architecture / project structure. E.g instead of having a /!\ Thinking out loud.
Do you see this issue superseding #2016? |
In my view, the current templates are "starting points" and do need need to push a certain architecture. From experience I dislike when templates have a certain architecture which I don't plan on keeping, it then creates more work for me. I would like to see an opinionated, production/enterprise template though, this can have more stuff and be more organised.
https://github.com/graphql-boilerplates/typescript-graphql-server/tree/master |
I agree with you on templates being a "getting-started" and very fine with what we already have as a getting started. Having a different flavour, with a bit more structure, an example Dockerfile, testing, and possibly other scripts (e.g hot reloading with
|
This is a good starting point but I see things like testing, which is core, are missing |
Templates should have separation of concerns
When using Graphback templates we geting index.ts file that has multiple elements and concerns that developers need to read. It will be much better to have graphback.ts file
See example PR that has this:
RedHat-Middleware-Workshops/rhtr-2020-api-mgmt-kafka-workshop#3
Additionally, we could extract migrations and have this also visible for users as well.
Templates should use different subscription mechanisms
In memory, subscriptions are not helping to understand concepts.
Enterprise template is needed
We need to provide an enterprise template. See #2016
Template can be consumable as docker images (along with graphback code)
Building all templates into quay will be desirable to be able to test stuff in container land.
The text was updated successfully, but these errors were encountered: