Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
910 commits
Select commit Hold shift + click to select a range
4ca6f5d
New translations cors.md (Korean)
ahopkins Dec 22, 2024
7e5617f
New translations cors.md (Chinese Simplified)
ahopkins Dec 22, 2024
db87ba8
New translations cors.md (Japanese)
ahopkins Dec 22, 2024
005c22e
New translations routing.md (Japanese)
ahopkins Dec 22, 2024
f1b524f
New translations cors.md (Chinese Simplified)
ahopkins Dec 22, 2024
1a43def
New translations configuration.md (Japanese)
ahopkins Dec 22, 2024
36e0a0f
New translations running.md (Japanese)
ahopkins Dec 22, 2024
f57a423
New translations v22.3.md (Japanese)
ahopkins Dec 22, 2024
62f81d8
New translations routing.md (Korean)
ahopkins Dec 22, 2024
2110029
New translations configuration.md (Korean)
ahopkins Dec 22, 2024
f4f01f7
New translations running.md (Korean)
ahopkins Dec 22, 2024
c9877ab
New translations v22.3.md (Korean)
ahopkins Dec 22, 2024
fa91424
New translations routing.md (Chinese Simplified)
ahopkins Dec 22, 2024
469d63a
New translations configuration.md (Chinese Simplified)
ahopkins Dec 22, 2024
7bb3131
New translations running.md (Chinese Simplified)
ahopkins Dec 22, 2024
a7a0cdd
New translations v22.3.md (Chinese Simplified)
ahopkins Dec 22, 2024
cc1ed9e
New translations policies.md (Japanese)
ahopkins Dec 31, 2024
bba7dd9
New translations changelog.md (Japanese)
ahopkins Dec 31, 2024
1374601
New translations policies.md (Korean)
ahopkins Dec 31, 2024
8afc038
New translations changelog.md (Korean)
ahopkins Dec 31, 2024
4516e3c
New translations policies.md (Chinese Simplified)
ahopkins Dec 31, 2024
9debd34
New translations changelog.md (Chinese Simplified)
ahopkins Dec 31, 2024
aa8a3b8
New translations commands.md (Japanese)
ahopkins Dec 31, 2024
21c6fb7
New translations v24.12.md (Japanese)
ahopkins Dec 31, 2024
738d267
New translations commands.md (Korean)
ahopkins Dec 31, 2024
b22de8a
New translations v24.12.md (Korean)
ahopkins Dec 31, 2024
59a8e35
New translations commands.md (Chinese Simplified)
ahopkins Dec 31, 2024
e8315fa
New translations v24.12.md (Chinese Simplified)
ahopkins Dec 31, 2024
81c10a0
New translations getting-started.md (Japanese)
ahopkins Jan 2, 2025
00708a0
New translations introduction.md (Japanese)
ahopkins Jan 2, 2025
9942902
New translations getting-started.md (Korean)
ahopkins Jan 2, 2025
e7ef4f3
New translations introduction.md (Korean)
ahopkins Jan 2, 2025
68919be
New translations getting-started.md (Chinese Simplified)
ahopkins Jan 2, 2025
1450f83
New translations introduction.md (Chinese Simplified)
ahopkins Jan 2, 2025
56f394a
New translations getting-started.md (Japanese)
ahopkins Jan 2, 2025
e596eb5
New translations introduction.md (Japanese)
ahopkins Jan 2, 2025
9c7fd0c
New translations getting-started.md (Chinese Simplified)
ahopkins Jan 2, 2025
e6d5f40
New translations introduction.md (Chinese Simplified)
ahopkins Jan 2, 2025
405db18
New translations class-based-views.md (Japanese)
ahopkins Mar 31, 2025
aa6db28
New translations proxy-headers.md (Japanese)
ahopkins Mar 31, 2025
6d30364
New translations signals.md (Japanese)
ahopkins Mar 31, 2025
f193087
New translations streaming.md (Japanese)
ahopkins Mar 31, 2025
6b87e6f
New translations app.md (Japanese)
ahopkins Mar 31, 2025
b3e658f
New translations handlers.md (Japanese)
ahopkins Mar 31, 2025
60d5b82
New translations headers.md (Japanese)
ahopkins Mar 31, 2025
c8be78f
New translations decorators.md (Japanese)
ahopkins Mar 31, 2025
8ef7b3d
New translations exceptions.md (Japanese)
ahopkins Mar 31, 2025
12a495e
New translations docker.md (Japanese)
ahopkins Mar 31, 2025
3b8abc7
New translations nginx.md (Japanese)
ahopkins Mar 31, 2025
4ee9e44
New translations autodiscovery.md (Japanese)
ahopkins Mar 31, 2025
c7fb729
New translations orm.md (Japanese)
ahopkins Mar 31, 2025
4b17197
New translations running.md (Japanese)
ahopkins Mar 31, 2025
77e9597
New translations contributing.md (Japanese)
ahopkins Mar 31, 2025
2a45b04
New translations cors.md (Japanese)
ahopkins Mar 31, 2025
d94b231
New translations methods.md (Japanese)
ahopkins Mar 31, 2025
a450f0d
New translations autodoc.md (Japanese)
ahopkins Mar 31, 2025
164349d
New translations basics.md (Japanese)
ahopkins Mar 31, 2025
fe69206
New translations security.md (Japanese)
ahopkins Mar 31, 2025
5bd7364
New translations validation.md (Japanese)
ahopkins Mar 31, 2025
3f12642
New translations v22.12.md (Japanese)
ahopkins Mar 31, 2025
1c1cf63
New translations v22.9.md (Japanese)
ahopkins Mar 31, 2025
3640389
New translations changelog.md (Japanese)
ahopkins Mar 31, 2025
9c06981
New translations v25.3.md (Japanese)
ahopkins Mar 31, 2025
96c812c
New translations class-based-views.md (Korean)
ahopkins Mar 31, 2025
e2459ab
New translations proxy-headers.md (Korean)
ahopkins Mar 31, 2025
7c0ff04
New translations signals.md (Korean)
ahopkins Mar 31, 2025
5eedb87
New translations streaming.md (Korean)
ahopkins Mar 31, 2025
cd9a90d
New translations app.md (Korean)
ahopkins Mar 31, 2025
48c6fb8
New translations handlers.md (Korean)
ahopkins Mar 31, 2025
be1679b
New translations headers.md (Korean)
ahopkins Mar 31, 2025
8f6bf95
New translations decorators.md (Korean)
ahopkins Mar 31, 2025
bb3b65a
New translations exceptions.md (Korean)
ahopkins Mar 31, 2025
fbcbb2c
New translations docker.md (Korean)
ahopkins Mar 31, 2025
c94db5a
New translations nginx.md (Korean)
ahopkins Mar 31, 2025
d71ffc7
New translations autodiscovery.md (Korean)
ahopkins Mar 31, 2025
f4b8d3e
New translations orm.md (Korean)
ahopkins Mar 31, 2025
c9202ec
New translations running.md (Korean)
ahopkins Mar 31, 2025
4ff059e
New translations contributing.md (Korean)
ahopkins Mar 31, 2025
79f8399
New translations cors.md (Korean)
ahopkins Mar 31, 2025
3a14571
New translations methods.md (Korean)
ahopkins Mar 31, 2025
4aa28ce
New translations autodoc.md (Korean)
ahopkins Mar 31, 2025
62faaed
New translations basics.md (Korean)
ahopkins Mar 31, 2025
c180b0b
New translations security.md (Korean)
ahopkins Mar 31, 2025
da67cf5
New translations validation.md (Korean)
ahopkins Mar 31, 2025
a989ebf
New translations v22.12.md (Korean)
ahopkins Mar 31, 2025
68f2964
New translations v22.9.md (Korean)
ahopkins Mar 31, 2025
4d244be
New translations changelog.md (Korean)
ahopkins Mar 31, 2025
c69321e
New translations v25.3.md (Korean)
ahopkins Mar 31, 2025
2d3035c
New translations class-based-views.md (Chinese Simplified)
ahopkins Mar 31, 2025
0ca95c1
New translations proxy-headers.md (Chinese Simplified)
ahopkins Mar 31, 2025
a99771f
New translations signals.md (Chinese Simplified)
ahopkins Mar 31, 2025
484a88f
New translations streaming.md (Chinese Simplified)
ahopkins Mar 31, 2025
de92871
New translations app.md (Chinese Simplified)
ahopkins Mar 31, 2025
0ae6dcf
New translations handlers.md (Chinese Simplified)
ahopkins Mar 31, 2025
904af8e
New translations headers.md (Chinese Simplified)
ahopkins Mar 31, 2025
5128802
New translations decorators.md (Chinese Simplified)
ahopkins Mar 31, 2025
6d3a688
New translations exceptions.md (Chinese Simplified)
ahopkins Mar 31, 2025
61ca46e
New translations docker.md (Chinese Simplified)
ahopkins Mar 31, 2025
b173b34
New translations nginx.md (Chinese Simplified)
ahopkins Mar 31, 2025
d020957
New translations autodiscovery.md (Chinese Simplified)
ahopkins Mar 31, 2025
e8f6997
New translations orm.md (Chinese Simplified)
ahopkins Mar 31, 2025
4b1cc29
New translations running.md (Chinese Simplified)
ahopkins Mar 31, 2025
73b5288
New translations contributing.md (Chinese Simplified)
ahopkins Mar 31, 2025
9a6d60d
New translations cors.md (Chinese Simplified)
ahopkins Mar 31, 2025
94f6fbb
New translations methods.md (Chinese Simplified)
ahopkins Mar 31, 2025
dd36eac
New translations autodoc.md (Chinese Simplified)
ahopkins Mar 31, 2025
1a64525
New translations basics.md (Chinese Simplified)
ahopkins Mar 31, 2025
a3ba757
New translations decorators.md (Chinese Simplified)
ahopkins Mar 31, 2025
6201e2e
New translations security.md (Chinese Simplified)
ahopkins Mar 31, 2025
400072d
New translations validation.md (Chinese Simplified)
ahopkins Mar 31, 2025
f7fd1dd
New translations v22.12.md (Chinese Simplified)
ahopkins Mar 31, 2025
6d24eaf
New translations v22.9.md (Chinese Simplified)
ahopkins Mar 31, 2025
d7d1c6e
New translations changelog.md (Chinese Simplified)
ahopkins Mar 31, 2025
e16219c
New translations v25.3.md (Chinese Simplified)
ahopkins Mar 31, 2025
1f5a9c0
New translations blueprints.md (Chinese Simplified)
ahopkins Sep 8, 2025
0d14cd8
New translations v24.12.md (Chinese Simplified)
ahopkins Sep 8, 2025
308bfc0
New translations configuration.md (Japanese)
ahopkins Nov 30, 2025
05b05f7
New translations configuration.md (Korean)
ahopkins Nov 30, 2025
4a5c539
New translations configuration.md (Chinese Simplified)
ahopkins Nov 30, 2025
04b15fe
New translations configuration.md (Japanese)
ahopkins Nov 30, 2025
203d818
New translations configuration.md (Korean)
ahopkins Nov 30, 2025
8fab072
New translations class-based-views.md (Japanese)
ahopkins Nov 30, 2025
890f87a
New translations proxy-headers.md (Japanese)
ahopkins Nov 30, 2025
8b382a2
New translations websockets.md (Japanese)
ahopkins Nov 30, 2025
854ee0a
New translations app.md (Japanese)
ahopkins Nov 30, 2025
eeb0ef7
New translations handlers.md (Japanese)
ahopkins Nov 30, 2025
11b746e
New translations headers.md (Japanese)
ahopkins Nov 30, 2025
e4fe862
New translations request.md (Japanese)
ahopkins Nov 30, 2025
d95dc68
New translations routing.md (Japanese)
ahopkins Nov 30, 2025
c70226f
New translations blueprints.md (Japanese)
ahopkins Nov 30, 2025
f3413ad
New translations exceptions.md (Japanese)
ahopkins Nov 30, 2025
050530f
New translations authentication.md (Japanese)
ahopkins Nov 30, 2025
0432f0a
New translations app-loader.md (Japanese)
ahopkins Nov 30, 2025
4f76f30
New translations configuration.md (Chinese Simplified)
ahopkins Nov 30, 2025
4e99f13
New translations manager.md (Japanese)
ahopkins Nov 30, 2025
6846184
New translations running.md (Japanese)
ahopkins Nov 30, 2025
4c16d5e
New translations index.md (Japanese)
ahopkins Nov 30, 2025
c2943bf
New translations contributing.md (Japanese)
ahopkins Nov 30, 2025
25b1642
New translations policies.md (Japanese)
ahopkins Nov 30, 2025
bbbb0bb
New translations configuration.md (Japanese)
ahopkins Nov 30, 2025
bc75b5d
New translations convenience.md (Japanese)
ahopkins Nov 30, 2025
2c24d44
New translations health-monitor.md (Japanese)
ahopkins Nov 30, 2025
33ca6d4
New translations logger.md (Japanese)
ahopkins Nov 30, 2025
5c3c9a7
New translations decorators.md (Japanese)
ahopkins Nov 30, 2025
0ac046d
New translations v21.12.md (Japanese)
ahopkins Nov 30, 2025
9e8f82c
New translations v21.3.md (Japanese)
ahopkins Nov 30, 2025
10ef350
New translations v21.6.md (Japanese)
ahopkins Nov 30, 2025
3ffc768
New translations v21.9.md (Japanese)
ahopkins Nov 30, 2025
83436ea
New translations v22.12.md (Japanese)
ahopkins Nov 30, 2025
cfa24da
New translations v22.3.md (Japanese)
ahopkins Nov 30, 2025
6d8c38c
New translations v22.6.md (Japanese)
ahopkins Nov 30, 2025
5876055
New translations v22.9.md (Japanese)
ahopkins Nov 30, 2025
17e2221
New translations v23.3.md (Japanese)
ahopkins Nov 30, 2025
07bef18
New translations v23.6.md (Japanese)
ahopkins Nov 30, 2025
2326152
New translations changelog.md (Japanese)
ahopkins Nov 30, 2025
cd2e019
New translations commands.md (Japanese)
ahopkins Nov 30, 2025
66d40b1
New translations class-based-views.md (Korean)
ahopkins Nov 30, 2025
04be872
New translations proxy-headers.md (Korean)
ahopkins Nov 30, 2025
a35f41e
New translations websockets.md (Korean)
ahopkins Nov 30, 2025
5861281
New translations app.md (Korean)
ahopkins Nov 30, 2025
7158509
New translations handlers.md (Korean)
ahopkins Nov 30, 2025
c69fb7c
New translations headers.md (Korean)
ahopkins Nov 30, 2025
0ecfe74
New translations request.md (Korean)
ahopkins Nov 30, 2025
5daa7db
New translations routing.md (Korean)
ahopkins Nov 30, 2025
cd0c952
New translations blueprints.md (Korean)
ahopkins Nov 30, 2025
285dba4
New translations exceptions.md (Korean)
ahopkins Nov 30, 2025
289a7e9
New translations authentication.md (Korean)
ahopkins Nov 30, 2025
1bcb65c
New translations app-loader.md (Korean)
ahopkins Nov 30, 2025
bdc974e
New translations manager.md (Korean)
ahopkins Nov 30, 2025
fc34de8
New translations running.md (Korean)
ahopkins Nov 30, 2025
c68432a
New translations index.md (Korean)
ahopkins Nov 30, 2025
6af8070
New translations contributing.md (Korean)
ahopkins Nov 30, 2025
69910b2
New translations policies.md (Korean)
ahopkins Nov 30, 2025
0b5a7c5
New translations configuration.md (Korean)
ahopkins Nov 30, 2025
783684b
New translations convenience.md (Korean)
ahopkins Nov 30, 2025
3ad0f2e
New translations health-monitor.md (Korean)
ahopkins Nov 30, 2025
bbd610c
New translations logger.md (Korean)
ahopkins Nov 30, 2025
845fde8
New translations decorators.md (Korean)
ahopkins Nov 30, 2025
00a4515
New translations v21.12.md (Korean)
ahopkins Nov 30, 2025
7b885f0
New translations v21.3.md (Korean)
ahopkins Nov 30, 2025
d580cc4
New translations v21.6.md (Korean)
ahopkins Nov 30, 2025
a1dfadc
New translations v21.9.md (Korean)
ahopkins Nov 30, 2025
6066c40
New translations v22.12.md (Korean)
ahopkins Nov 30, 2025
7679179
New translations v22.3.md (Korean)
ahopkins Nov 30, 2025
a14d0a3
New translations v22.6.md (Korean)
ahopkins Nov 30, 2025
9965725
New translations v22.9.md (Korean)
ahopkins Nov 30, 2025
fb52715
New translations v23.3.md (Korean)
ahopkins Nov 30, 2025
8d19b52
New translations v23.6.md (Korean)
ahopkins Nov 30, 2025
d90ee6b
New translations changelog.md (Korean)
ahopkins Nov 30, 2025
4a50552
New translations commands.md (Korean)
ahopkins Nov 30, 2025
e967457
New translations class-based-views.md (Chinese Simplified)
ahopkins Nov 30, 2025
5cf008a
New translations proxy-headers.md (Chinese Simplified)
ahopkins Nov 30, 2025
b6c7431
New translations websockets.md (Chinese Simplified)
ahopkins Nov 30, 2025
5e54e91
New translations app.md (Chinese Simplified)
ahopkins Nov 30, 2025
6399ae4
New translations handlers.md (Chinese Simplified)
ahopkins Nov 30, 2025
ba714bb
New translations headers.md (Chinese Simplified)
ahopkins Nov 30, 2025
965a7c2
New translations request.md (Chinese Simplified)
ahopkins Nov 30, 2025
ebd2c44
New translations routing.md (Chinese Simplified)
ahopkins Nov 30, 2025
d5c3e39
New translations blueprints.md (Chinese Simplified)
ahopkins Nov 30, 2025
7bd03ff
New translations exceptions.md (Chinese Simplified)
ahopkins Nov 30, 2025
9692c18
New translations authentication.md (Chinese Simplified)
ahopkins Nov 30, 2025
41dfa83
New translations app-loader.md (Chinese Simplified)
ahopkins Nov 30, 2025
a50bc96
New translations manager.md (Chinese Simplified)
ahopkins Nov 30, 2025
9c4bcf2
New translations running.md (Chinese Simplified)
ahopkins Nov 30, 2025
d979f47
New translations index.md (Chinese Simplified)
ahopkins Nov 30, 2025
b96c197
New translations contributing.md (Chinese Simplified)
ahopkins Nov 30, 2025
1b3922c
New translations policies.md (Chinese Simplified)
ahopkins Nov 30, 2025
18e371c
New translations configuration.md (Chinese Simplified)
ahopkins Nov 30, 2025
7065420
New translations convenience.md (Chinese Simplified)
ahopkins Nov 30, 2025
34ab3eb
New translations health-monitor.md (Chinese Simplified)
ahopkins Nov 30, 2025
72f28cc
New translations logger.md (Chinese Simplified)
ahopkins Nov 30, 2025
5b1e3ac
New translations decorators.md (Chinese Simplified)
ahopkins Nov 30, 2025
7f96821
New translations v21.12.md (Chinese Simplified)
ahopkins Nov 30, 2025
7515614
New translations v21.3.md (Chinese Simplified)
ahopkins Nov 30, 2025
0498e7a
New translations v21.6.md (Chinese Simplified)
ahopkins Nov 30, 2025
67eff15
New translations v21.9.md (Chinese Simplified)
ahopkins Nov 30, 2025
ee22d9f
New translations v22.12.md (Chinese Simplified)
ahopkins Nov 30, 2025
a2557ee
New translations v22.3.md (Chinese Simplified)
ahopkins Nov 30, 2025
7921548
New translations v22.6.md (Chinese Simplified)
ahopkins Nov 30, 2025
ae5570c
New translations v22.9.md (Chinese Simplified)
ahopkins Nov 30, 2025
89c3ccc
New translations v23.3.md (Chinese Simplified)
ahopkins Nov 30, 2025
70215d6
New translations v23.6.md (Chinese Simplified)
ahopkins Nov 30, 2025
e6579a8
New translations commands.md (Chinese Simplified)
ahopkins Nov 30, 2025
a0dca53
New translations introduction.md (Japanese)
ahopkins Dec 31, 2025
4382134
New translations introduction.md (Korean)
ahopkins Dec 31, 2025
d5280dd
New translations introduction.md (Chinese Simplified)
ahopkins Dec 31, 2025
d00788f
New translations introduction.md (Japanese)
ahopkins Dec 31, 2025
bc38e75
New translations introduction.md (Chinese Simplified)
ahopkins Dec 31, 2025
6a524da
New translations routing.md (Japanese)
ahopkins Dec 31, 2025
bf6ede0
New translations tasks.md (Japanese)
ahopkins Dec 31, 2025
20f7b75
New translations configuration.md (Japanese)
ahopkins Dec 31, 2025
e30a88e
New translations running.md (Japanese)
ahopkins Dec 31, 2025
a7d28fd
New translations changelog.md (Japanese)
ahopkins Dec 31, 2025
9c97d14
New translations commands.md (Japanese)
ahopkins Dec 31, 2025
fd2ecba
New translations routing.md (Korean)
ahopkins Dec 31, 2025
5fdd25d
New translations tasks.md (Korean)
ahopkins Dec 31, 2025
8b7b789
New translations configuration.md (Korean)
ahopkins Dec 31, 2025
9230344
New translations running.md (Korean)
ahopkins Dec 31, 2025
c73836c
New translations changelog.md (Korean)
ahopkins Dec 31, 2025
6fcd632
New translations commands.md (Korean)
ahopkins Dec 31, 2025
72c4d45
New translations routing.md (Chinese Simplified)
ahopkins Dec 31, 2025
45e6316
New translations tasks.md (Chinese Simplified)
ahopkins Dec 31, 2025
eec6fee
New translations configuration.md (Chinese Simplified)
ahopkins Dec 31, 2025
ccffbeb
New translations running.md (Chinese Simplified)
ahopkins Dec 31, 2025
20d74f1
New translations changelog.md (Chinese Simplified)
ahopkins Dec 31, 2025
ecd5aeb
New translations commands.md (Chinese Simplified)
ahopkins Dec 31, 2025
0b3538e
New translations v25.12.md (Japanese)
ahopkins Dec 31, 2025
e5c955e
New translations v25.12.md (Korean)
ahopkins Dec 31, 2025
7255257
New translations v25.12.md (Chinese Simplified)
ahopkins Dec 31, 2025
24aa4cb
New translations class-based-views.md (Japanese)
ahopkins Jan 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions guide/content/ja/built-with-sanic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
title: 前方の全速度-私たちはどのように我々はサニックでこのサイトを構築しました
layout: メイン
---

.. attrs::
:class: タイトル

```
全速力:
```

.. attrs::
:class: subtitle

```
どのように私たちはサニックでこのサイトを構築しました
```

私たちが誇らしげに言うインターネットの小さなコーナーへようこそ、「はい、私たちはこれをSanicで構築しました!」と。 これは単なるウェブサイトではありません。私たちの遊び場、テストラボ、戦場、そして自宅です。

![](/assets/images/built-with-sanic.png)

### 物語: "我々は自分のシャンパンを飲む"

私たちはSanicをあまりにも信じているので、私たち自身のウェブサイトを運営する究極のテストにしようと決めました。 食中毒のリスクが少ないだけで、自分のレストランでシェフが食事をするようなものです。

なぜでしょう? ウェブサイトやウェブアプリケーションを構築することは難しいので。 無数の可動部品、多くの挑戦、そして常に存在するスピードと信頼性の必要性があります。 私たちはあなたが_できる_多くの方法の一つをお見せしたいと思います。

このハイステークスのデジタルキッチンでは、Sanicは私たちの秘密の食材です。 Sanicに自社のウェブサイトを導入することで、私たちはその機能を紹介するだけではなく、現実世界でストレステストを行っています。 これは、Sanicが紙に良いだけではないことを証明する私たちの歩くチャンスです。それは堅牢です。 最小のブログから最も忙しいeコマースサイトまであらゆるものを扱える高性能なフレームワークです

だから、ここで私たちは、Sanicが私たちのサイトを運営することができれば、それもあなたの力になるという知識に自信を持って、私たち自身のシャンパンをすすります。 思考の速さでコーディングに乾杯! 🥂

### セットアップ:デジタルオーシャン、アホイ!

私たちは高性能なクラウドセーリングが大好きなので、Digital OceanのApp Platformでサイトを立ち上げました。 フェラーリをクラウドに搭載していると考えてみてください。高速で洗練されていますが、扱いやすいです。

なぜシンプルになるのでしょうか? リーンなチームで、DevOpsの指導者がいない私たちには、簡単で簡単なソリューションが必要でした。 Digital Oceanは、サービスとしてのスムーズなセーリングプラットフォーム(PaaS)を提供してくれます。 簡単なセットアップ、自動展開、そして健全に眠れるような信頼性など、当社のニーズに最適です。

私たちの選択は私たちの精神を反映しています: あなたの強みに焦点を当て、プラットフォームは重い持ち上げを行いましょう. 私たちにとって、それはシンプルでありながら強力な展開ソリューションによってサポートされているSanicで素晴らしいWebエクスペリエンスを作成することを意味します。 ⛵

### コード:GitHubの場所

私たちのコードはすべてオープンで、GitHubの公開審査の栄光を浴びています。 なぜ魔法を隠すのですか? 詳細は format@@0(https://github.com/sanic-org/sanic/tree/main/guide) をご覧ください。 先に進み、覗き見を取る、フォーク、それで遊ぶ、それを壊す(そして親切にそれを修正する)。

オープンソースは単なる流行語ではありません私たちの精神です 私たち自身よりも大きなものを一緒に作ることです 私たちのコードは、共同でのイノベーション、開発のための遊び場、そして実際のSanicの実例を証明しています。

コードのすべての行、すべてのコミットは、Sanicとの私たちの旅を反映しており、そのスピードとスケーラビリティをどのように活用しているかを示しています。 バグを修正したり、機能を提案したり、ドキュメントを強化したりしても、あなたの貢献はこのプロジェクトを前進させるものです。

では、ダイブイン、あなたの天才に貢献し、SanicとWeb開発の未来を形作っていきましょう。 一緒にコーディングするだけでなく、コミュニティ主導のパワーハウスを作っています。 🚀

### 招待状:書き込み、コード、ブレイク、修正!

- **ドキュメンタリー作家**: 複雑なものを簡単に作る愛? 私たちのドキュメントはあなたのキャンバスです。 言葉で絵を描いてみよう! 🎨

- **コードニンジャ**:バグを見つけますか? Squash 'em. アイデアはありますか? Code 'em. プルリクエストを雨にしましょう! 🥷

- **バグハンター**: バグを見つけたら、じっと見つめるだけではありません。 お知らせください。 私たちは良い虫狩りが大好きです。 🐛

### ボトムライン

私たちはSanicとこのサイトを構築し、それが何ができるかを示しました。 速くて楽しくて私たちが使うものです だから、物事が迅速にロードされる場合は、背面に私たちを軽く叩いてください。 そうでなければ、ええと... 宇宙線を責めるのか?

サニックを作るだけでなく、良いことにご参加ください, しかし、「私はできません-それは-バターではありません」良い!

乾杯、
サニックチーム(時にはマントを着用)
228 changes: 228 additions & 0 deletions guide/content/ja/guide/advanced/class-based-views.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
# クラスベースビュー

## なぜ使うのか?

.. column::

```
### 問題点

APIを設計する際の一般的なパターンは、同じエンドポイントに対してHTTPメソッドによって複数の機能を持つことです。

これらのオプションは両方とも機能しますが、優れた設計慣行ではなく、プロジェクトが成長するにつれて時間の経過とともに維持するのが難しい場合があります。
```

.. column::

````
```python
@app.get("/foo")
async def foo_get(request):
...

@app.post("/foo")
async def foo_post(request):
...

@app.put("/foo")
async def foo_put(request):
...

@app.route("/bar", methods=["GET", "POST", "PATCH"])
async def bar(request):
if request.method == "GET":
...

elif request.method == "POST":
...

elif request.method == "PATCH":
...
```
````

.. column::

```
### 解決策

クラスベースのビューは、要求に対する応答動作を完結に実装するクラスです。これらは、同じエンドポイントで異なるHTTPリクエストタイプの処理を区分する方法を提供します。
```

.. column::

````
```python
from sanic.views import HTTPMethodView

class FooBar(HTTPMethodView):
async def get(self, request):
...

async def post(self, request):
...

async def put(self, request):
...

app.add_route(FooBar.as_view(), "/foobar")
```
````

## ビューの定義

クラスベースのビューは、 :class:`sanic.views.HTTPMethodView` のサブクラスでなければなりません。 その後、対応するHTTPメソッドの名前でクラスメソッドを実装できます。 定義されたメソッドを持たない要求を受信すると、 `405: Method not allowed` 応答が生成されます。

.. column::

```
エンドポイントにクラスベースのビューを登録するために、`app.add_route`メソッドが使用できます。最初の引数は、メソッド`as_view`が呼び出された定義済みクラスで、2番目の引数はURLエンドポイントである必要があります。

利用可能なメソッドは:

- get
- post
- put
- patch
- delete
- head
- options
```

.. column::

````
```python
from sanic.views import HTTPMethodView
from sanic.response import text

class SimpleView(HTTPMethodView):

def get(self, request):
return text("I am get method")

# 非同期構文も利用可能
async def post(self, request):
return text("I am post method")

def put(self, request):
return text("I am put method")

def patch(self, request):
return text("I am patch method")

def delete(self, request):
return text("I am delete method")

app.add_route(SimpleView.as_view(), "/")
```
````

## pathパラメータ

.. column::

```
[ルーティングのセクション](../basics/routing.md)で説明されているように、pathパラメータを使用できます。
```

.. column::

````
```python
class NameView(HTTPMethodView):

def get(self, request, name):
return text("こんにちは、{}さん".format(name))

app.add_route(NameView.as_view(), "/<name>")
```
````

## デコレータ

[デコレータのセクション](../best-practices/decorators.md)で述べられているように、デコレータを使用してエンドポイントに機能を追加する必要があるかもしれません。 CBVによる二つの選択肢があります:

1. ビュー内の _全ての_ HTTPメソッドに適用する
2. ビュー内のHTTPメソッドに個別に適用する

これらがどのように動作するか見てみましょう:

.. column::

```
### すべてのメソッドに適用する

クラスにデコレータを追加する場合は、`decorators`クラス変数を設定できます。 これらは、`as_view`が呼び出された時にクラスに適用されます。
```

.. column::

````
```python
class ViewWithDecorator(HTTPMethodView):
decorators = [some_decorator_here]

def get(self, request, name):
return text("やあ、僕はデコレータを持ってるよ")

def post(self, request, name):
return text("やあ、僕もデコレータを持ってるよ")

app.add_route(ViewWithDecorator.as_view(), "/url")
```
````

.. column::

```
### 個々のメソッドに適用する

しかし、すべてのメソッドではなく、いくつかのメソッドにデコレータをつけたい場合は、ここに示すように記述できます。
```

.. column::

````
```python
class ViewWithSomeDecorator(HTTPMethodView):

@staticmethod
@some_decorator_here
def get(request, name):
return text("やあ、僕はデコレータを持ってるよ")

def post(self, request, name):
return text("やあ、僕はデコレータを持っていないよ")

@some_decorator_here
def patch(self, request, name):
return text("やあ、僕もデコレータを持っているよ")
```
````

## URLの生成

.. column::

```
これはクラス名がエンドポイントの一部であることを除けば、[generating any other URL](../basics/routing.md#generating-a-url)と同じように動作します。
```

.. column::

````
```python
@app.route("/")
def index(request):
url = app.url_for("SpecialClassView")
return redirect(url)

class SpecialClassView(HTTPMethodView):
def get(self, request):
return text("Hello from the Special Class View!")

app.add_route(SpecialClassView.as_view(), "/special_class_view")
```
````

67 changes: 67 additions & 0 deletions guide/content/ja/guide/advanced/commands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# カスタムCLIコマンド

Sanic serverを実行するために、 [CLI](../running/running.md#running-via-command) が付いています。 場合によっては、独自のコマンドを実行するためにCLIを強化する必要があるかもしれません。 コマンドは以下の基本パターンを使用して呼び出されます。

```sh
sanic path.to:app exec <command> [--arg=value]
```

.. 列::

```
To enable this, you can use your `Sanic` app instance to wrap functions that can be callable from the CLI using the `@app.command` decorator.
```

.. 列::

````
```python
@app.command
async def hello(name="world"):
print(f"Hello, {name}.")
```
````

.. 列::

```
Now, you can easily invoke this command using the `exec` action.
```

.. 列::

````
```sh
sanic path.to:app exec hello --name=Adam
```
````

コマンドハンドラは同期または非同期のどちらでも構いません。 ハンドラは、CLI から渡される任意の数のキーワード引数を受け入れることができます。

.. 列::

```
By default, the name of the function will be the command name. You can override this by passing the `name` argument to the decorator.
```

.. 列::

````
```python
@app.command(name="greet")
async def hello(name="world"):
print(f"Hello, {name}.")
```

```sh
sanic path.to:app exec greet --name=Adam
```
````

.. 警告::

```
This feature is still in **BETA** and may change in future versions. There is no type coercion or validation on the arguments passed in from the CLI, and the CLI will ignore any return values from the command handler. Future enhancements and changes are likely.
```

_V24.12_に追加しました
Loading
Loading