Replies: 4 comments 4 replies
-
The autogeneration of routes / files with actions loaders etc is easier if there the convention for creating files/routes etc was more contrained; @Kilian can probably weigh in better on that side of stuff; he's the creator & one of the leads for the flat routes feature |
Beta Was this translation helpful? Give feedback.
-
You mean @kiliman, not me ;) |
Beta Was this translation helpful? Give feedback.
-
My only issue with this is that unless Remix decides the “best” library to do everything this can’t be done For example, in the DB scenario, while Prisma is definitely one of the most popular options it doesn’t come bundled with Remix, by doing this Remix will say Prisma is the ORM you should use, but what happens if the team behind an app wants to use something else? I think this makes more sense as generators inside a Stack, create a new app with some specific Stack and that stack can give you a command to run to generate more files based on the tech stack, so if you use it and the Stack comes with Prisma you know it will use Prisma for the DB instead of using something else, and you made this decision when you created the app This will also allow other Stacks to use other options,for example a Cloudflare based Stack could use D1 as DB without Prisma. |
Beta Was this translation helpful? Give feedback.
-
I also do a lot of this in Remix Forge for you, and I plan to add all of the missing ones here, and because it's an extension it doesn't really make the Remix team tie the project to anything. Feel free to check it out here: https://marketplace.visualstudio.com/items?itemName=CodeForge.remix-forge |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I noticed for things like session, cookies, creating routes - it all must be done manually if you aren't using a stack (i.e. indie stack).
I'm curious - does the core team for remix think they will go the batteries included path? If so then perhaps with a cli tool that has various generators or helpers. This would allow a more modular approach to the "stacks" and eventually the stacks could use this to provision the app.
i.e.
This is a dramatic oversimplification of the cli, but I hope it serves to illustrate the concept.
Beta Was this translation helpful? Give feedback.
All reactions