dracokite-cli
v1.0.1
Published
Scaffold a dracokite framework project
Maintainers
Readme
dracokite-cli
Scaffold a dracokite framework project.
Usage
npx dracokite create my-appOr install globally:
npm i -g dracokite-cli
dracokite create my-appInteractive mode
dracokite createYou'll be prompted for:
- Project name
- Database — None / MongoDB (mongoose) / MySQL (drizzle-orm)
- Tool libraries — dotenv, axios, pino, sharp, socket.io (multi-select)
- Package manager — npm / pnpm / yarn
CLI flags
dracokite create my-app --db mongodb --tools dotenv,axios --pm pnpm| Flag | Description |
|------|-------------|
| --db | mongodb | mysql | none |
| --tools | Comma-separated: dotenv,axios,pino,sharp,socket.io |
| --pm | npm | pnpm | yarn |
Project structure
After scaffolding, your project will contain:
my-app/
├── app.ts # Entry point
├── package.json
├── tsconfig.json
├── config/
│ ├── appConfig.json # Framework config
│ ├── default.json # Default env values
│ ├── errors.json # Error codes (zh/en)
│ └── production.json # Production overrides
├── pages/ # File-system routes
│ ├── index.ts
│ ├── hello.ts
│ ├── bff-demo.ts
│ └── users/
│ ├── index.ts
│ └── [id].ts
├── tasks/ # Cron jobs
│ └── cleanup.ts
├── public/ # Static files
│ └── index.html
├── database/ # DB models (if selected)
│ ├── index.ts
│ └── models.ts / schema.ts
└── utils/
└── helper.tsLicense
MIT
