create-weez-api
v0.1.2
Published
Scaffold a production-ready Express + Sequelize API for Supabase Postgres (KasselTech conventions)
Maintainers
Readme
create-weez-api
Scaffold a production-ready Express + Sequelize API for Supabase Postgres, following KasselTech conventions (model → service → controller → route → validator).
Usage
npx create-weez-api my-backendNon-interactive (recommended defaults):
npx create-weez-api my-backend --yes --no-installFlags
| Flag | Description |
|------|-------------|
| --yes, -y | Use recommended defaults |
| --port <n> | API port (default 6001) |
| --origin <url> | Frontend CORS origin |
| --auth otp\|password-otp | Auth mode |
| --no-auth | Skip auth (incompatible with --socket) |
| --socket / --no-socket | Socket.io |
| --redis / --no-redis | Redis client |
| --cloudinary / --no-cloudinary | Cloudinary uploads |
| --docker / --no-docker | Docker Compose |
| --install / --no-install | Run package install |
| --git / --no-git | git init |
| --force | Overwrite non-empty directory |
Secrets are never prompted. Fill .env from .env.example after generation.
Auth modes
- otp — email OTP cookies
- password-otp — Argon2id password + OTP second factor
Generated resource helper
Inside a generated project:
npm run generate:resource -- ProductDevelop this package
cd create-weez-api
npm install
npm test
node bin/create-weez-api.js demo --yes --no-install --no-gitLicense
MIT
