Note
This starter package is made for our needs and saving time.
Please, follow the basics of Hono.js and OpenAPIHono (using @hono/zod-openapi or our own @bdcode/hono-zod-oas31) before using this starter template.
Clone the repository (may add cli support next time)
git clone https://github.com/codecontinent/honode.gitInstall Deps.
We are using
pnpm, you may change it by following and modifyingpackage.jsonand cleanup extras e.g.pnpm-lock.yaml
pnpm iOur cli autoloads the scripts from src/commands/* as we pass the name.
For example,
pnpm eco <command_name> # must be exist as src/commands/<command_name>.tsTip
Here <command_name> is always going to seach for src/commands/<file_name>.ts or src/commands/<dir_name>/<file_name>.ts
if you want sub-folders or depth-level 2 in scripts. you can do like:
pnpm eco <dir_name>:<command_name>We are using husky and lint-staged with conventional-commitlints. So we are enforcing developers to commit in a conventional standards. Also, our linter hook checks various checks following the lint-staged configuration in package.json file.
Tip
if you feel it's not necessary or needed for your project, you can avoid them and cleanup properly to avoid any blockers from them.
We are using vitest. It can give you seamless TDD / BDD experience as you need.
For more, please visit follow vitest and our sample tests/specs files to get started.
Caution
This starter template is in development WIP.