Hey Friends! I’m tired of configuring .env variables and types generation scripts every time I spin up a new Sveltekit project, so I’ve turned this into a template to save you a few minutes and get your Sveltekit App connected up with the Directus SDK and all your types generated.
Hey Alex thanks for sharing !
I’m curious on what’s the difference with starters/cms/sveltekit at main · directus-labs/starters · GitHub
This is just a skeleton Sveltekit project but includes a few extra bits around connecting to Directus via the SDK and getting type safety.
You could probably just use it as a reference.
that’s not what the starter is also doing?
asking because I’m trying to figure out what’s the best way to start. I tried running the cli with the cms template but I find it a bit too much pre-configured for me. So maybe just connect to a fresh directus instance it’s a bit less overwhelming
The starter includes a data model, example data and full frontend with all the components built out.
You could look at the way things are setup in there as a reference and still start from a blank project.