OmegaHawkeye / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
6 stars 1 forks source link

Alternative ways to perform the generate command #51

Open OmegaHawkeye opened 4 months ago

OmegaHawkeye commented 4 months ago

From kirimase created by arvind-iyer-2001: nicoalbanese/kirimase#51

Schemas are really hard to define in the CLI. If we really need relations to exist in the application that we're developing it would be cool if we could implement the following

  1. Create all schemas in a separate file, say schemas.prisma, we declare all the relations, and all fields.
  2. When kirimase generate runs, it can detect all the schemas in schemas.prisma, we can feed in the option to convert one of these schemas into a TRPC, API or App Route.
  3. Accordingly the form will also help us add data to the database, with their relations declared. These relations can be viewed in the form of tables, like it is shown in this tutorial. Ecommerce Admin Dashboard.
OmegaHawkeye commented 4 months ago

I'm currently working on this possibility. Really hope this suceeds

OmegaHawkeye commented 4 months ago

bump on this, would be a game changer for prisma users