godprotocol-cli
v0.1.3
Published
GodProtocol Node.js framework CLI
Downloads
41
Readme
godprotocol-cli
CLI for scaffolding GodProtocol Node.js framework projects.
Usage
mkdir my-api
cd my-api
npx godprotocol-cli initThis copies the GodProtocol project skeleton into the current directory:
my-api/
├── handlers/
│ └── v1/
├── routes/
│ ├── index.js
│ └── router-v1.js
├── services/
│ └── index.js
├── services.config.js
├── index.js
└── my-api.jsThen install the peer dependency and run it:
npm install express
node index.jsDevelopment
Run the CLI locally without publishing:
node bin/godprotocol-cli.js initRun tests:
npm testDesign
godprotocol-cli stays thin. It doesn't encode the framework's architecture
itself — it just renders the skeleton in templates/project/ into the
current working directory, substituting {{PROJECT_NAME}} for the target
directory's name.
godprotocol-cli
│
│ init
▼
templates/project/
│
▼
user's GodProtocol applicationAs the framework grows, the generated project can depend on a versioned GodProtocol runtime package, while this CLI stays responsible only for initialization.
