nicoalbanese / kirimase

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

Alternative ways to perform the generate command #51

Open arvind-iyer-2001 opened 9 months ago

arvind-iyer-2001 commented 9 months ago

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.
arvind-iyer-2001 commented 9 months ago

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

Balance8 commented 4 months ago

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