spatz 2
1.0.0
基于原始Spatz的完整的全幕模板。
实时演示应用程序
Spatz在Svelte和Daisyui中使用标准形式。 SPATZ-2使用效果较高,Shadcn-Svelte,Stripe Payments和Svelte-Animations。
mkdir pb-spatz-2
cd pb-spatz-2
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 "
通过http://localhost:8090/_/
并创建一个新的数据库。
转到设置>导入集合,然后粘贴在./pocketbase/pb_schema.json
(来自此回购)的contens中,然后单击导入。
git clone https://github.com/engageintellect/spatz-2
cd spatz-2
cp .env.example .env.local (or .env)
pnpm i && pnpm run dev --host
http://localhost:5173
以查看应用程序。 /src
├── /lib
│ ├── /schema.ts (Zod schema)
│ └── app.d.ts (global types)
├── /assets
│ └── /images
├── /components
│ ├── /magic-ui (svelte-animations)
│ └── /ui (shared components)
├── /stores (global state)
├── /routes
│ ├── /guestbook
│ │ └── /post
│ │ └── /[id]
│ ├── /users
│ │ └── /[id]
│ ├── /technologies
│ ├── /subscriptions
│ ├── /terms
│ ├── /ai
│ │ ├── /chat
│ │ ├── /context
│ │ ├── /a
│ │ ├── /b
│ │ └── /c
│ ├── /donate
│ │ ├── /cancel (redirect when cancelling stripe payment)
│ │ └── /success (redirect after successful stripe payment)
│ ├── /checkout
│ │ ├── /payment (redirect when cancelling stripe payment)
│ │ ├── /cancel (redirect when cancelling stripe payment)
│ │ └── /success (redirect after successful stripe payment)
│ ├── /api
│ │ ├── /repo-data (fetch github repository stars)
│ │ ├── /fortune (fetch random tech founder quote)
│ │ ├── /chat (OpenAI streaming API)
│ │ └── /donate (for stripe payments)
│ │__ /auth (Pocketbase auth)
│ │ ├── /login
│ │ ├── /register
│ │ ├── /logout
│ │ └── /reset-password
│ └── /my (user-specific routes)
│ ├── /profile
│ ├── /account
│ ├── /billing (for subscriptions)
│ └── /settings
/pocketbase
├── pb_schema.json
/static
└── /docs (general documentation)
图标由Iconify/Svelte提供。您可以在ICONES上搜索图标。
动画由GSAP提供,易于实现。您可以在此处找到该文档。
贡献受到欢迎和赞赏。如果您有功能请求,请将其添加为问题或提出拉请请求。