Giter VIP home page Giter VIP logo

Comments (2)

lukeed avatar lukeed commented on July 22, 2024

I would build out two separate projects: api.*.com as your worktop app and *.com as your SK app that, during prefetch/load, makes requests to your API. This also gives you the freedom/confidence/control of building specifically a Worker and lean into all its offerings, rather than building on top of an (albeit powerful) abstraction that doesn't fully expose underlying platforms so that it can remain agnostic to all runtimes.

You could use Worktop directly inside a SK app, but you would likely be using utilities Worktop offers instead of its router, which means you also miss out on all the TypeScript strictness it offers too. This is because SvelteKit is the router and is passing around requests and contexts... the same thing Worktop is doing,

The production-saas project will use Svelte, not Svelte Kit, directly. A lot of this has to do with the reasons shared above, but also because it gives far more control in the user's hands, which is ideal for educational purposes but also project longevity and project customizability ... and the intent of production-saas is to be a springboard for your own project – and owning/revealing all the code helps with that goal.

Hope that helps~!

from worktop.

jaymakes11 avatar jaymakes11 commented on July 22, 2024

Yes, that's very helpful input, @lukeed.

Thank you!

from worktop.

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.