Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vtempest/Serverless-DOCS-Stack
Serverless DOCS Full Stack Starter (Drizzle OAuth Cloudflare SvelteKit) - DEMO serverless-docs-stack.vtempest.workers.dev
https://github.com/vtempest/Serverless-DOCS-Stack
hacktoberfest saas-boilerplate sveltekit
Last synced: 2 months ago
JSON representation
Serverless DOCS Full Stack Starter (Drizzle OAuth Cloudflare SvelteKit) - DEMO serverless-docs-stack.vtempest.workers.dev
- Host: GitHub
- URL: https://github.com/vtempest/Serverless-DOCS-Stack
- Owner: vtempest
- Created: 2015-06-12T21:39:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T06:45:33.000Z (3 months ago)
- Last Synced: 2024-10-21T09:15:08.249Z (3 months ago)
- Topics: hacktoberfest, saas-boilerplate, sveltekit
- Language: Svelte
- Homepage: https://serverless-docs-stack.vtempest.workers.dev
- Size: 695 KB
- Stars: 28
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - vtempest/Serverless-DOCS-Stack - π»βοΈ Serverless DOCS (π§Drizzle πOAuth βοΈ Cloudflare πΌοΈ SvelteKit) - πDEMO serverless-docs-stack.vtempest.workers.dev (TypeScript)
README
Live Demo### βοΈ Serverless DOCS Stack: Drizzle OAuth Cloudflare Svelte
π [Drizzle ORM](https://orm.drizzle.team/kit-docs/quick) - lightweight ORM compatible with Cloudflare D1 and drizzle-kit to manage schema migrations
π€ [OAuth Lucia](https://github.com/lucia-auth/lucia) - Google oAuth sign-in and/or email signup via Resend mailer api, with 4 email templates: reset password, change email, verify email, welcome. Settings and admin panel for users.
βοΈ [Cloudflare for Svelte](https://developers.cloudflare.com/pages/framework-guides/deploy-a-svelte-site/) - serverless autoscaling API and D1 database, great hosting platform with free tier
πΌοΈ [SvelteKit](https://github.com/sveltejs/kit) - full stack interface and API routes framework
### 𧩠Interface Components:
π¨ [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss) + [Bits UI](https://github.com/huntabyte/bits-ui) + [shadcn-svelte](https://github.com/huntabyte/shadcn-svelte) - popular UI components which can be AI-generated at [v0.dev](https://v0.dev)
π [formsnap](https://github.com/svecosystem/formsnap) + [sveltekit-superforms](https://github.com/ciscoheat/sveltekit-superforms) + [zod](https://github.com/colinhacks/zod) - form validation
π± [lucide](https://github.com/lucide-icons/lucide) - icons
π£οΈ [vite-plugin-kit-routes](https://github.com/jycouet/kitql/tree/main/packages/vite-plugin-kit-routes) - url routes
π² [pino](https://github.com/pinojs/pino) - logging
### Sreenshots
### β¬οΈ Installation
1. Install prerequisites Node.js or Bun `curl -fsSL https://bun.sh/install | bash`.
2. Clone to localhost or server `git clone https://github.com/vtempest/docs-stack-starter`.
3. CD to project directory `cd docs-stack-starter`.
4. Install dependencies `bun install`.
5. `mv .env.example .env ; mv wrangler.example.toml wrangler.toml` and set the domain and API keys in `.env`.
6. Auth providers, get id/secret from [Google](https://console.cloud.google.com/apis/credentials).
7. Set OAuth origin `http://localhost` and `http://localhost:5173` on local or `https://domain.com` on server.
8. Set redirect `http://localhost:5173/auth/oauth/google/callback` or `https://api.domain.com/auth/oauth/google/callback`.
9. For email auth, get API from [Resend](https://resend.com/api-keys) mailer and verify domain.
10. Log in with your Cloudflare account by running: `bunx wrangler login`.
11. Create your D1 database via dashboard or with `bunx wrangler d1 create my-db-prod`.
12. Copy the console output database_name and database_id.
13. Go to `wrangler.toml` and change `database_name` and `database_id`.
14. Go to `drizzle.config.ts` and change db name in `dbName`.
15. Go to `package.json` and change db name in `db:push:*` and `db:backup:prod`.
16. Generate and migrate the schema to dev or prod db: `bun run db:migrate; bun run db:push:dev; bun run db:push:prod`.
17. Develop on local with `bun run dev`.
18. Deploy to prod with `bun run deploy`.