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
Provenance
- Commit
c9053eb- Tree
bcee3dc- Author
Yusuke Wada <yusuke@kamawada.com>- Committer
Yusuke Wada <yusuke@kamawada.com>- Parent
f1be3af
2 files changed+35 addedâ35 removed
modified:docs/README.ja.md+17 added-17 removed
57 unmodified lines58 ## ã€ã³ã¹ããŒã«59 60 NPMãªããžããªããã€ã³ã¹ããŒã«ã§ããŸãã61 62+```sh63+yarn add hono64 ```63-$ yarn add hono64-```65 66 `yarn`ããããã¯`npm`ã³ãã³ãã§ã€ã³ã¹ããŒã«ã67 68+```sh69+npm install hono70 ```69-$ npm install hono70-```71 72 ## ã¡ãœãã73 74 `Hono`ã®ã€ã³ã¹ã¿ã³ã¹ã«ã¯ä»¥äžã®ã¡ãœããããããŸãã344 unmodified lines419 ### 1. `npm init`420 421 ãŸããé圢ãšãªããããžã§ã¯ããäœæããŸãã422 423+```sh424+mkdir hono-example425+cd hono-example426+npm init -y427 ```424-$ mkdir hono-example425-$ cd hono-example426-$ npm init -y427-```428 429 ### 2. `wrangler init`430 431 Wrangleråãã«åæåããŸãã432 433 ```434-$ npx wrangler@beta init434+npx wrangler@beta init435 ```436 437 質åãããã®ã§`y`ã`n`ã§çããŸããæåãåãããªããã¡ã¯`n`ã§æ§ããŸããã438 6 unmodified lines445 ### 3. `npm install hono`446 447 `hono`ãNPMã¬ãžã¹ããªããã€ã³ã¹ããŒã«ããŸãã448 449+```sh450+npm i hono451 ```450-$ npm i hono451-```452 453 ### 4. ã³ãŒããæžã454 455 ãã£ã4è¡æžãã ãã§ãïŒ12 unmodified lines468 469 ããŒã«ã«ã§éçºãµãŒããŒãç«ã¡äžããŸãã470 ãã®åŸã`http://127.0.0.1:8787/`ã«ãã©ãŠã¶ã§ã¢ã¯ã»ã¹ããŠã¿ãŸãããã471 472+```sh473+npx wrangler@beta dev index.js474 ```473-$ npx wrangler@beta dev index.js474-```475 476 ### 6. å
¬é477 478 以äžã®ã³ãã³ãã§Cloudflareã«ãããã€ããŸãã479 ããã§çµããã§ãïŒ480 481+```sh482+npx wrangler@beta publish index.js483 ```482-$ npx wrangler@beta publish index.js483-```484 485 ## ã¹ã¿ãŒã¿ãŒãã³ãã¬ãŒã486 487 Cloudflare Workersã®ã¢ããªã±ãŒã·ã§ã³ãæžãå§ããã®ã«[ã¹ã¿ãŒã¿ãŒãã³ãã¬ãŒã](https://github.com/yusukebe/hono-minimal)ã䜿ãããšãã§ããŸãã488 TypeScriptãesbuildãMiniflareã䜿ã£ãæå°éã®ãã®ãšãªã£ãŠããŸãã489 490 ãã®ãã³ãã¬ãŒãã䜿ã£ãé圢ãçæããã«ã¯ã以äžã®ã³ãã³ããæã¡ãŸãã491 492+```sh493+wrangler generate my-app https://github.com/yusukebe/hono-minimal494 ```493-$ wrangler generate my-app https://github.com/yusukebe/hono-minimal494-```495 496 ## é¢é£ãããžã§ã¯ã497 498 æåã«äœã£ã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 linesmodified:README.md+18 added-18 removed
58 unmodified lines59 ## Install60 61 You can install Hono from the npm registry.62 63+```sh64+yarn add hono65 ```64-$ yarn add hono65-```66 67 or68 69+```sh70+npm install hono71 ```70-$ npm install hono71-```72 73 ## Methods74 75 An instance of `Hono` has these methods.344 unmodified lines420 ### 1. `npm init`421 422 Make a npm skeleton directory.423 424+```sh425+mkdir hono-example426+cd hono-example427+npm init -y428 ```425-$ mkdir hono-example426-$ cd hono-example427-$ npm init -y428-```429 430 ### 2. `wrangler init`431 432 Initialize as a wrangler project.433 434+```sh435+npx wrangler@beta init436 ```435-$ npx wrangler@beta init436-```437 438 Answer the questions. If you want, you can answer `y`.439 440 ```5 unmodified lines446 ### 3. `npm install hono`447 448 Install `hono` from the npm registry.449 450+```sh451+npm i hono452 ```451-$ npm i hono452-```453 454 ### 4. Write your app455 456 Only 4 lines!!11 unmodified lines468 ### 5. Run469 470 Run the development server locally. Then, access `http://127.0.0.1:8787/` in your Web browser.471 472+```sh473+npx wrangler@beta dev index.js474 ```473-$ npx wrangler@beta dev index.js474-```475 476 ### 6. Publish477 478 Deploy to Cloudflare. That's all!479 480+```sh481+npx wrangler@beta publish index.js482 ```481-$ npx wrangler@beta publish index.js482-```483 484 ## Starter template485 486 You 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.487 488 To generate a project skelton, run this command.489 490+```sh491+wrangler generate my-app https://github.com/yusukebe/hono-minimal492 ```491-$ wrangler generate my-app https://github.com/yusukebe/hono-minimal492-```493 494 ## Related projects495 496 Implementation 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