Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running without PocketBase? #23

Open
dan-pagan opened this issue Jan 26, 2025 · 2 comments
Open

Running without PocketBase? #23

dan-pagan opened this issue Jan 26, 2025 · 2 comments

Comments

@dan-pagan
Copy link

How much work would it be to use spatz-2 without the user management features provided by PocketBase. I am looking for a boilerplate that uses shadcn-svelte, superforms, etc. but don't need user management. I realise that Pocketbase is lightweight, but I'd rather not add unused dependencies if possible. ty.

@engageintellect
Copy link
Owner

You could spin up it up and get rid of the pocketbase hooks, and the routes that use it. Not a huge amount of work. But it would probably be easier to just spin up a blank sveltekit project and add shadcn-svelte, superforms and whatever else you want.

I'm lazy though. So when I have a use case that doesn't require user management, I just bypass the login/registration screens. There is an "if" statement in /src/routes/+page.svelte that checks to see if the user is logged in, in order to decide what UI to render... I just get rid of the part.

It's easier for me to leave all the the pocketbase plumbing in and not need it, than to need it and not have it. And if I need to track users in the future - it makes it easy to "turn on".

Hope this helps. Happy to answer any questions I can.

@dan-pagan
Copy link
Author

Thanks for the reply. I like the structure and agree with you that it's probably easier to leave it in, I was just asking in case it was something you had done or considered. I prefer to take the easier route also, which is why I am looking at your boilerplate project rather than rolling my own.

In the future, maybe a basic setup script to allow users to select some of the non core features would be useful. So if you are just making a simple 'flyer' site for example you could turn of things like user auth. Just an idea.

I've been away from the Svelte ecosystem for a year so I need to get back up to speed with Svelte5 and other changes. Thanks for sharing your boilerplate project. This looks like a good place to get (re)started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants