create-luckystack-app
v0.2.6
Published
Scaffold a new LuckyStack project. Run `npx create-luckystack-app my-app` to generate a starter with the recommended overlay layout, Prisma schema, and config files in place.
Maintainers
Readme
create-luckystack-app
Scaffold a new LuckyStack project.
Prerequisites
- Node.js 20+
- A reachable Redis instance (
REDIS_HOST/REDIS_PORTin.env.local) - A database supported by Prisma (MongoDB, MySQL, PostgreSQL, or SQLite). The default
prisma/schema.prismauses MongoDB; switch the provider beforeprisma generateif you want something else.
Usage
npx create-luckystack-app my-app
cd my-app
# Fill in real secrets (Redis password, OAuth client IDs, etc.):
cp .env.local_template .env.local
$EDITOR .env.local
# Two terminals:
npm run server # starts the backend
npm run client # starts ViteOpen http://localhost:5173.
What it generates
A starter project pre-configured with:
- The
luckystack/overlay folder for per-package configuration (login providers, user adapter, Prisma/Redis clients, hooks). - A recommended
prisma/schema.prismamatchingdefaultPrismaUserAdapter. config.ts,deploy.config.ts,services.config.tsalready wired up..env_template+.env.local_templatedocumenting every env var the framework reads.- A working
server/server.tsthat callsbootstrapLuckyStack. - A minimal Vite + React 19 frontend with proxy rules for
/api,/sync,/auth,/socket.io,/livez,/readyz,/_docs.
Options
| Flag | Default | Description |
| --- | --- | --- |
| --no-install | (install runs) | Skip the npm install after copying. |
| --no-prompt | (prompts run) | Skip the interactive prompts and use defaults (Mongo + credentials). |
| --help, -h | — | Show help. |
Related architecture docs
docs/DEVELOPER_GUIDE.md— full walkthrough after scaffolding.docs/ARCHITECTURE_PACKAGING.md— overlay folder convention +bootstrapLuckyStack.
License
MIT — see the repository LICENSE.
