create-layang
v1.0.3
Published
CLI to scaffold a new LayangKit project
Downloads
329
Maintainers
Readme
create-layang
CLI untuk scaffolding project LayangKit — SvelteKit + Cloudflare D1 + Drizzle ORM starter template.
Usage
# With npx (no installation needed)
npx create-layang my-app
# Or with npm init
npm create layang my-appWhat You Get
- ⚡ SvelteKit 5 — Full-stack framework with runes
- 🗄️ Cloudflare D1 — Edge SQLite database
- 🔐 Authentication — Email + Google OAuth ready
- 📧 Email — Verification & password reset via Resend
- 📁 File Upload — Image upload to Cloudflare R2
- 🎨 Dark Theme — Tailwind CSS 4 with elegant dark mode
- 💰 100% Free Tier — Deploy gratis ke Cloudflare Pages!
Project Structure
After running the command, you'll have:
my-app/
├── src/
│ ├── lib/ # Auth, DB, Email, Storage
│ └── routes/ # Pages & API routes
├── drizzle/ # Database migrations
├── .env.example # Environment template
└── package.jsonNext Steps
cd my-app
# 1. Setup environment
cp .env.example .env
# Edit .env with your credentials
# 2. Setup database
npx wrangler d1 create my-database
# Copy database_id to wrangler.toml
# 3. Apply migrations
npm run db:migrate:local
# 4. Start development
npm run devOpen http://localhost:5173 to see your app!
Deploy
# Build & deploy to Cloudflare Pages
npm run deploy100% FREE untuk project kecil hingga menengah dengan generous free tier!
Documentation
License
MIT
