Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ svpb Public template

A minimal starter template for building full-stack applications with SvelteKit and PocketBase. Clean, lightweight, and easy to extend.

License

Notifications You must be signed in to change notification settings

kimmyxpow/svpb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SvelteKit + PocketBase Starter

This is a fullstack starter template that combines SvelteKit for the frontend and PocketBase as the backend framework.

PocketBase here is not just used as a database, but as a complete backend framework. You can easily extend it to fit your needs:

📁 Project Structure

The project is organized with a clear separation between frontend and backend:

.
├── pb/                 # PocketBase backend (Go &/ JavaScript)
├── sv/                 # SvelteKit frontend (TypeScript)
├── .gitignore
├── LICENSE
├── package.json
├── package-lock.json
└── README.md

🚀 Getting Started

1. Clone the repository

git clone https://github.com/kimmyxpow/svpb.git
cd svpb

2. Install dependencies

npm install

This will install all dependencies in the root and in the sv/ frontend workspace.

3. Install modd (used for backend auto-reloading)

Make sure Go is installed, then run:

go install github.com/cortesi/modd/cmd/modd@latest

You may need to add $GOPATH/bin to your PATH if modd is not found after install.

🧪 Development

Run both frontend and backend together

npm run dev

Runs both the SvelteKit dev server and PocketBase backend in parallel.

Run only the frontend (SvelteKit)

npm run dev:fe

Run only the backend (PocketBase)

npm run dev:be

By default, PocketBase will run at http://localhost:8090.

🛠️ Generate PocketBase Types

You can generate TypeScript types from your PocketBase collections for use in the frontend:

npm run typegen

This will create or update the types in sv/src/lib/pocketbase/generated-types.ts using your local PocketBase SQLite data.

About

A minimal starter template for building full-stack applications with SvelteKit and PocketBase. Clean, lightweight, and easy to extend.

Topics

Resources

License

Stars

Watchers

Forks