spock-dev-stack
spock-dev-stack copied to clipboard
🚀 Full-stack all-in-one in 3 containers 💻 SvelteKit real-world demo of OAuth, posts, comments, profiles, likes, followers 🌎 Pocketbase SQL, admin dashboard

Full-stack all-in-one in 3 containers
- SvelteKit real-world demo of OAuth, posts, comments, profiles, likes, followers
- Pocketbase SQL, admin dashboard
- Caddy https router
Spock Dev Stack Docs
- Svelte structure for reactive interface components
- Pocketbase sqlite db toolkit, admin panel, auth, api docs, ORM rules, migrations, files, js extensions
- OAuth2 Google Signin user authentication
- Caddy https server routing to containers with caddy-docker-proxy in one file
- Svelte Kit api server with server-side render
- docker compose manage containers in one file
- ESLint/Prettier code style
- Vite bundle compiler
Backend Alternatives
- PostgreSQL Supabase
- Drizzle ORM
- Lucia OAuth
- Ava Unit Testing
- Redoc OpenAPI Internal Docs
- Docusaurus Public Docs
Interface Alternatives
Install
- Install docker
curl -fsSL https://get.docker.com -o get-docker.sh; sh get-docker.sh - Clone to localhost or server
git clone https://github.com/vtempest/spock-dev-stack mv .env.example .envand set the domain in.env- Setup and run
docker network create caddy;docker-compose up -d - Go to
localhost:8090/_or with caddyapi.localhost/_or on serverapi.domain.com/_and setup admin login - Import Collections, load
pb_schema.jsonfor seed migration - Auth providers, get id/secret from Google
- Set OAuth origin
http://localhostandhttp://localhost:5173on local orhttps://domain.comon server - Set redirect
http://localhost:8090/api/oauth2-redirectorhttps://api.domain.com/api/oauth2-redirect - Develop app running on
app.domain.comorlocalhost:5173
\\// Build fast and scale \\//