Skip to content
Myr

docs: remove `$ `

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by Yusuke Wada · parent f1be3af · Browse files · 2 files+35 added−35 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+35 added−35 removed

  • other:+35 added−35 removed

2 files+35 added−35 removed

modified:docs/README.ja.md+17 added-17 removed
57 unmodified lines
58## むンストヌル5960NPMリポゞトリからむンストヌルできたす。6162```sh63yarn add hono64```63$ yarn add hono64```6566`yarn`、もしくは`npm`コマンドでむンストヌル。6768```sh69npm install hono70```69$ npm install hono70```7172## メ゜ッド7374`Hono`のむンスタンスには以䞋のメ゜ッドがありたす。
344 unmodified lines
419### 1. `npm init`420421たず、雛圢ずなるプロゞェクトを䜜成したす。422423```sh424mkdir hono-example425cd hono-example426npm init -y427```424$ mkdir hono-example425$ cd hono-example426$ npm init -y427```428429### 2. `wrangler init`430431Wrangler向けに初期化したす。432433```434$ npx wrangler@beta init434npx wrangler@beta init435```436437質問されるので`y`か`n`で答えたす。最初、分からないうちは`n`で構いたせん。438
6 unmodified lines
445### 3. `npm install hono`446447`hono`をNPMレゞストリからむンストヌルしたす。448449```sh450npm i hono451```450$ npm i hono451```452453### 4. コヌドを曞く454455たった4行曞くだけです
12 unmodified lines
468469ロヌカルで開発サヌバヌを立ち䞊げたす。470その埌、`http://127.0.0.1:8787/`にブラりザでアクセスしおみたしょう。471472```sh473npx wrangler@beta dev index.js474```473$ npx wrangler@beta dev index.js474```475476### 6. 公開477478以䞋のコマンドでCloudflareにデプロむしたす。479これで終わりです480481```sh482npx wrangler@beta publish index.js483```482$ npx wrangler@beta publish index.js483```484485## スタヌタヌテンプレヌト486487Cloudflare Workersのアプリケヌションを曞き始めるのに[スタヌタヌテンプレヌト](https://github.com/yusukebe/hono-minimal)を䜿うこずができたす。488TypeScript、esbuild、Miniflareを䜿った最小限のものずなっおいたす。489490このテンプレヌトを䜿った雛圢を生成するには、以䞋のコマンドを打ちたす。491492```sh493wrangler generate my-app https://github.com/yusukebe/hono-minimal494```493$ wrangler generate my-app https://github.com/yusukebe/hono-minimal494```495496## 関連プロゞェクト497498最初に䜜ったHonoの`TrieRouter`ずいうルヌタヌは[goblin](https://github.com/bmf-san/goblin)を参考にしたした。`RegExpRouter`は[Router::Boom](https://github.com/tokuhirom/Router-Boom)にむンスパむアされおいたす。APIのデザむンは[express](https://github.com/expressjs/express)ず[koa](https://github.com/koajs/koa)を参考にしたした。同じCloudflare Workersのルヌタヌもしくはフレヌムワヌクには[itty-router](https://github.com/kwhitley/itty-router)、[Sunder](https://github.com/SunderJS/sunder)、[worktop](https://github.com/lukeed/worktop)がありたす。
32 unmodified lines
modified:README.md+18 added-18 removed
58 unmodified lines
59## Install6061You can install Hono from the npm registry.6263```sh64yarn add hono65```64$ yarn add hono65```6667or6869```sh70npm install hono71```70$ npm install hono71```7273## Methods7475An instance of `Hono` has these methods.
344 unmodified lines
420### 1. `npm init`421422Make a npm skeleton directory.423424```sh425mkdir hono-example426cd hono-example427npm init -y428```425$ mkdir hono-example426$ cd hono-example427$ npm init -y428```429430### 2. `wrangler init`431432Initialize as a wrangler project.433434```sh435npx wrangler@beta init436```435$ npx wrangler@beta init436```437438Answer the questions. If you want, you can answer `y`.439440```
5 unmodified lines
446### 3. `npm install hono`447448Install `hono` from the npm registry.449450```sh451npm i hono452```451$ npm i hono452```453454### 4. Write your app455456Only 4 lines!!
11 unmodified lines
468### 5. Run469470Run the development server locally. Then, access `http://127.0.0.1:8787/` in your Web browser.471472```sh473npx wrangler@beta dev index.js474```473$ npx wrangler@beta dev index.js474```475476### 6. Publish477478Deploy to Cloudflare. That's all!479480```sh481npx wrangler@beta publish index.js482```481$ npx wrangler@beta publish index.js482```483484## Starter template485486You can start making your Cloudflare Workers application with [the starter template](https://github.com/yusukebe/hono-minimal). It is really minimal using TypeScript, esbuild, and Miniflare.487488To generate a project skelton, run this command.489490```sh491wrangler generate my-app https://github.com/yusukebe/hono-minimal492```491$ wrangler generate my-app https://github.com/yusukebe/hono-minimal492```493494## Related projects495496Implementation of the original router `TrieRouter` is inspired by [goblin](https://github.com/bmf-san/goblin). `RegExpRouter` is inspired by [Router::Boom](https://github.com/tokuhirom/Router-Boom). API design is inspired by [express](https://github.com/expressjs/express) and [koa](https://github.com/koajs/koa). [itty-router](https://github.com/kwhitley/itty-router), [Sunder](https://github.com/SunderJS/sunder), and [worktop](https://github.com/lukeed/worktop) are the other routers or frameworks for Cloudflare Workers.
32 unmodified lines