Home

Awesome

PocketBase + SvelteKit (Static) Project Template

Welcome to the PocketBase + SvelteKit project template! This template allows you to effortlessly create a single Docker container housing both the backend (PocketBase) and frontend (SvelteKit) for your projects. With a minimal image size of just 55 MB, it's perfect for cost-effective hosting providers and projects without extensive public pages that require SEO.

Project Structure

Features

Usage

  1. Run dev PocketBase server: docker compose -f compose.dev.yaml up.
  2. Run frontend dev server with bun or npm.
  3. Use PUBLIC_POCKETBASE_URL env variable if your PocketBase server is not accessible at localhost:8090.
  4. For production, use docker compose -f compose.prod.yaml up or build the Docker image with target prod first.

Dockerfile Details

SSR and Authorization

How to add Tailwind CSS?

cd sveltekit
bunx @svelte-add/tailwindcss@latest
bun install

Contributing

We welcome contributions! Please feel free to submit issues or pull requests.

License

This project is licensed under the MIT License.

Acknowledgements

Special thanks to PocketBase, SvelteKit, and the authors of other PocketBase-SvelteKit templates (1, 2).

Contact

If you have any questions or feedback, please use the GitHub Issues page.

Roadmap