WebstoneHQ / webstone-plugins

Start your next full-stack application with Webstone and configure it as you go.
MIT License
85 stars 6 forks source link

GraphQL-Server in Sveltekit-Endpoint #188

Open Cahllagerfeld opened 2 years ago

Cahllagerfeld commented 2 years ago

When not using an external API, we need to run an GraphQL-Server inside a Sveltekit-Endpoint. We could leverage the Yoga-package that provides a Sveltekit-Integration Out-of-the-Box.

When using this approach we would probably need to scaffold a Sveltekit-Project in the template from create-webstone-project. We probably cant generate the Sveltekit-project on the fly, because we need to set this endpoint up

For being able to add the whole framework to an existing sveltekit-project we could also put this graphql-endpoint in a template and paste it in the api folder during the creation process.

mikenikles commented 1 year ago

My understanding is we move this to a webstone-graphql plugin and its cli package will handle the creation of the necessary SvelteKit endpoint.