Open goetzrobin opened 1 year ago
I'm unsure if incorporating a 'host service' as a default is feasible. As a potential user of the Spartan stack, I would like it more if it had a platform-agnostic approach.Maybe explain in the docs what I need to change to setup different providers and tell the user "this is where you configure your database and you can use every provider of your choice if you have x,y,z"
@lcatania I do think that's a very valid point! While that's the origin of the project I think a default vendor lock in is too much!
I dont know enough about Nx but a convenient way could be to have some 'providers' that the user could select when generating the project and the default is no provider. So the user can select Supabase, Railway, Turso or whatever preset is supported out of the box.
Kinda like create-t3:
@goetzrobin do you want some help with this? :-) Are the points still valid or does anything changed?
Here is what I am thinking right now about how the flow should be:
Happy to discuss all of this! I feel like it would be cool to make things flexible by adding prompting as described by @lcatania, but this is what I consider an ideal first flow.
Let me know what you think about this @DominikPieper. I still owe you some more info on the tRPC integration and am also happy to discuss my reasoning behind each of ng-signal-forms, ngxtension, @tanstack/angular-query-experimental
@DominikPieper here is a good example of what I want the spartan stack to be like from the NextJs community: https://kirimase.dev
Which scope/s are relevant/related to the feature request?
Don't know / other
Information
The goal is to set up a spartan project with a single CLI command.
I would say it should be as easy as
or something similar.
This would do the following:
Another idea is to add a docker-compose.yml file that spins up a local Postgres DB?
Describe any alternatives/workarounds you're currently using
You can run
and opt into tailwind and tRPC, which get's you half way there.
Then you need to manually install
Drizzle
and set it up. You need to set up a Supabase account. You need to download the Postgres docker image and run the container locally or set up the supabase CLI.I would be willing to submit a PR to fix this issue