It's
v2
of the template. The old version could be found in branchv1
.
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 59 MB, it's perfect for cost-effective hosting providers and projects without extensive public pages that require SEO. It's still possible to prerender some pages with SvelteKit, but it's not the main focus of this template.
ghcr.io
github.com/YOUR-ORG/YOUR-REPO
to your GitHub repo. For instance, github.com/Egor-S/my-awesome-project
pocketbase/migrations/1739793600_initial_settings.go
cd pocketbase && go run . serve
in the first terminalcd sveltekit && npm run dev
in the second terminallocalhost:5173
Find more details in respective README files.
To build the Docker image locally, run:
docker build . -t my-awesome-project:latest
The image is simple enough to be run without docker compose
:
docker run -p 8090:8090 -v ./pb_data:/app/pb_data my-awesome-project:latest
container_id=$(docker create my-awesome-project:latest)
docker cp $container_id:/app/pocketbase ./pocketbase
docker rm $container_id
We welcome contributions! Please feel free to submit issues or pull requests.
This project is licensed under the MIT License.
Special thanks to PocketBase, SvelteKit, and the authors of other PocketBase-SvelteKit templates (1, 2).
If you have any questions or feedback, please use the GitHub Issues page.