A complete, fullstack template for Svelte.
mkdir pb-spatz
cd pb-spatz
wget https://github.com/pocketbase/pocketbase/releases/download/v0.22.9/pocketbase_0.22.9_linux_amd64.zip
unzip pocketbase_0.22.9_linux_amd64.zip
./pocketbase serve --http="0.0.0.0:8090"
Log in to the Pocketbase admin console at http://localhost:8090/_/
and create a new database.
Go to settings > Import collections, then paste in the contens of ./pocketbase/pb_schema.json
(from this repo) and click import.
git clone https://github.com/engageintellect/spatz
cd spatz
cp .env.example .env.local (or .env)
pnpm i && pnpm run dev --host
http://localhost:5173
to see the app./src
├── /lib
│ └── app.d.ts (global types)
├── /assets
│ └── /images
├── /components
├── /stores (global state)
├── /routes
│ ├── /guestbook
│ ├── /ai (nested routes)
│ │ ├── /a
│ │ ├── /b
│ │ └── /c
│ ├── /api
│ │ ├── /repoData (fetch github repository stars)
│ │ ├── /chat (OpenAI streaming API)
│ │__ /auth (Pocketbase auth)
│ │ ├── /login
│ │ ├── /register
│ │ ├── /logout
│ │ └── /reset-password
│ └── /my (user-specific routes)
│ ├── /account
│ ├── /profile
│ └── /settings
/pocketbase
├── pb_schema.json
/static
└── /docs (general documentation)
Icons are provided by iconify/svelte. You can search for icons on Icones.
The app comes pre-loaded with all of the standard themes from DaisyUI. You can also create your own here
Animations are provided by GSAP and are easy to implement. You can find the documentation here.
Contributions are welcomed, and appreciated. If you have a feature request, please add it as an issue or make a pull request.