boats-cli
boats-cli
is the unofficial CLI for johndcarmichael/boats which makes it even easier to quickly setup and scaffold the BOATS files in a project.
Early alpha, docs and functionality will change
Table of Contents generated with DocToc
Quick Start
npx @acrontum/boats-cli --help
npx @acrontum/boats-cli path --help
npx @acrontum/boats-cli model --help
npx @acrontum/boats-cli init --help
For an empty boats project:
mkdir backend-spec
cd backend-spec
npm init --yes
# npm i --save-dev boats @acrontum/boats-cli
npx @acrontum/boats-cli \
path auth/verify --get \
path auth/login --post \
path auth/logout --get \
path auth/refresh-token --get \
path albums/:albumId --post --get --patch --delete --list \
path albums/:albumId/songs/:songId -crudl \
model jwt \
model search --type query
npx boats -i src/index.yml -o build/api.json
optionally, since it's long to type:
npm i --save-dev @acrontum/boats-cli
then you can just run npx bc model test --dry-run
.
Development
Configure githooks:
git config core.hooksPath $(git rev-parse --show-toplevel)/githooks/