Skip to content

codecontinent/honode

Repository files navigation

HoNode - Starter pack using Hono with Node.js runtime

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.

Getting started

Clone the repository (may add cli support next time)

git clone https://github.com/codecontinent/honode.git

Install Deps.

We are using pnpm, you may change it by following and modifying package.json and cleanup extras e.g. pnpm-lock.yaml

pnpm i

Our scalable cli eco

Our 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>.ts

Tip

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>

Conventional Commits and Hooks

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.

Testing

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.

For more ...

Caution

This starter template is in development WIP.

About

HoNode - Starter pack using Hono with Node.js runtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published