Skip to content

Latest commit

 

History

History
79 lines (51 loc) · 1.66 KB

README.md

File metadata and controls

79 lines (51 loc) · 1.66 KB

example-hono-api

An example of how to create a publishable and fully type-safe API using Hono.

A RPC client is exposed and can be published as a package to be consumed by other applications.

What's inside?

Projects

Tech Stack

Setup

Environment setup

Install pnpm

corepack prepare pnpm@latest --activate

More alternatives

Install dependencies

pnpm install -r

Usage

Run commands project-wide with pnpm run <command>.

Commands

  • dev – start the development servers
  • build – build the production bundles
  • lint – lint the codebase
  • test – run the tests

Dev

1. Start the development servers

pnpm run dev

You should see an output containing:

api:dev: ⬣ Listening at http://0.0.0.0:8787
app:dev: Remix App Server started at http://localhost:3000

2. Open the app

Find the app URL in the output and open it in your browser.

3. Making changes

You can make changes in any of the projects and the development servers will automatically reload ✨

Perks