https://github.com/jianyuan/pocketbase-sveltekit-auth
Sample SvelteKit app with PocketBase integration
https://github.com/jianyuan/pocketbase-sveltekit-auth
pocketbase svelte sveltekit
Last synced: 15 days ago
JSON representation
Sample SvelteKit app with PocketBase integration
- Host: GitHub
- URL: https://github.com/jianyuan/pocketbase-sveltekit-auth
- Owner: jianyuan
- License: mit
- Created: 2022-12-28T12:26:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-27T23:28:34.000Z (22 days ago)
- Last Synced: 2025-03-28T13:08:52.166Z (22 days ago)
- Topics: pocketbase, svelte, sveltekit
- Language: Svelte
- Homepage: https://youtu.be/AxPB3e-3yEM
- Size: 816 KB
- Stars: 215
- Watchers: 2
- Forks: 18
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pocketbase - SvelteKit PocketBase Auth - Demo login and registration pages with examples.  (Svelte)
- awesome-pocketbase - GitHub
- awesome-pocketbase - GitHub
README
# pocketbase-sveltekit-auth
This is a project that demonstrates how to integrate PocketBase with SvelteKit 1.0. The project includes login and registration pages, as well as examples of how to retrieve the current user. You can watch a video of the creation of this project on YouTube at [this link](https://youtu.be/AxPB3e-3yEM).
[](https://youtu.be/AxPB3e-3yEM)
## Developing
To get started with this project, you will need to have PocketBase installed and running on your system. You can find more information about installing and setting up PocketBase at the [PocketBase website](https://pocketbase.io/).
```
./pocketbase serve
```Copy `.env.example` to `.env` and make changes as necessary.
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
```bash
npm run dev# or start the server and open the app in a new browser tab
npm run dev -- --open
```## Building
To create a production version of your app:
```bash
npm run build
```You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.