Open coco98 opened 4 years ago
Why not have the data model and the remote_schema/action code, instead of only the data model.
Hasura could define a template on how a developer should structure their Github repo and use that in the console.
Let's say I want to add a Firebase Authentication to the marketplace. I could have a Github repository with the following structuture:
The console could read that repo, apply the migrations/metadata changes, and show the Markdown of how to deploy the the code to the available providers. Providers could also be a filter on the marketplace search.
I think that having the database structure and the code that goes along with it will be more useful than just the data model.
I can see a lot of things that could go into this marketplace that would make a lot easier for beginners to get started with Hasura.
More experienced users could also benefit from it sharing their code and implementations.
Sounds like a great plan! Really interested in the calendar
one. If anyone wants to discuss and brainstorm about this in Discord give me a shout :)
I saw this on HackerNews today and remembered about this issue https://drawsql.app/templates
While setting up a database schema or doing data modelling in general, it would be immensely useful to be able to be able to use a best-practices reference schema to use as a starting point.
I imagine the experience to be something like this:
I imagine the schemas in the library to be a combination of full blown schemas or maybe even a few related tables put together.
Here are some examples that I think could be useful:
These examples can come with any combination of tables, views, functions, hasura relationships, hasura permissions.
In my mind I'm imagining a UI that's kind of like a combination of a searchable marketplace combined with a dbdiagram.io!
This idea can also be extended to:
Where are the "modules" in this library stored?
Questions to others!
What kinds of reference schemas, hasura metadata examples, postgres functions/utilties would have helped you as you were using Hasura?