Coder Social home page Coder Social logo

RFC: spartan/stack Nx plugin about spartan HOT 6 OPEN

goetzrobin avatar goetzrobin commented on July 17, 2024
RFC: spartan/stack Nx plugin

from spartan.

Comments (6)

lcatania avatar lcatania commented on July 17, 2024 1

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"

from spartan.

goetzrobin avatar goetzrobin commented on July 17, 2024 1

@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!

from spartan.

lcatania avatar lcatania commented on July 17, 2024

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:
image

from spartan.

DominikPieper avatar DominikPieper commented on July 17, 2024

@goetzrobin do you want some help with this? :-) Are the points still valid or does anything changed?

from spartan.

goetzrobin avatar goetzrobin commented on July 17, 2024

Here is what I am thinking right now about how the flow should be:

  1. Create Nx workspace
  2. Configure AnalogJs with Tailwind
  3. Add spartan tRPC (not sure if this will be kept inside the Analog preset as the tRPC package was moved to spartan)
  4. Install Drizzle
  5. Add a .env file with the DB connection placeholder
  6. Add ng-signal-forms, ngxtension, @tanstack/angular-query-experimental
  7. Add a basic template that showcases the functionality (install whatever spartan/ui primitives are necessary)

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

from spartan.

goetzrobin avatar goetzrobin commented on July 17, 2024

@DominikPieper here is a good example of what I want the spartan stack to be like from the NextJs community: https://kirimase.dev

from spartan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.