Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Webアプリをできるだけコードを手書きしないで作ってみる
Search
tomokusaba
April 24, 2024
Programming
2
250
Webアプリをできるだけコードを手書きしないで作ってみる
Webアプリをできるだけコードを手書きしないで作ってみる
.NETラボ勉強会2024年4月
https://dotnetlab.connpass.com/event/314310/
tomokusaba
April 24, 2024
Tweet
Share
More Decks by tomokusaba
See All by tomokusaba
アクセシビリティの観点からみたFluent UI Blazorのすすめ
tomokusaba
1
180
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
1.1k
プロンプトエンジニアリング入門
tomokusaba
2
1.3k
Sementic Kernelのネイティブ関数について
tomokusaba
0
960
C#でのPlaywrightを使ったE2Eテストの実際
tomokusaba
0
490
「インフラ初心者」…からのPlaywright Testing
tomokusaba
1
340
Fluent UI Blazorの新しいComponentについて
tomokusaba
0
330
「インフラ初心者の私がAzure VMで.NETアプリをホストするまでサンタを帰さない」の続き!
tomokusaba
1
320
Sementic Kernelのネイティブ関数について
tomokusaba
0
300
Other Decks in Programming
See All in Programming
ERB, ancient and future
m_seki
3
200
勉強会4_アップデートされたAssistantsAPIを試す
milky04
0
1.7k
入門プロパティベーステスト/learning-property-based-testing
kiway
6
1k
新年度から始めるJava言語のファーストステップ2024
tatsuya1bm
0
150
製造業ドメインにOneTeamでディープ・ダイブする組織設計・組織運営
i_senaz
1
190
Jetpack Compose Mechanism
skydoves
1
680
Good intentions gone bad
evaferreira
0
100
LTのやり方
yosuke_furukawa
PRO
9
1.1k
Kubernetes Code Contribution入門
bells17
3
700
RAGのretrievalの評価を “ranx”で行う / Evaluate retrival of RAG using "ranx"
kun432
1
190
Using Ruby in the browser is wonderful
ledsun
1
1.6k
Are Your .NET 8 Applications Resilient for the Chaos-proof?
selcukusta
1
200
Featured
See All Featured
Atom: Resistance is Futile
akmur
260
25k
Faster Mobile Websites
deanohume
300
30k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
Web development in the modern age
philhawksworth
203
10k
Ruby is Unlike a Banana
tanoku
96
10k
How GitHub Uses GitHub to Build GitHub
holman
469
290k
Product Roadmaps are Hard
iamctodd
45
9.8k
Robots, Beer and Maslow
schacon
PRO
155
8k
GitHub's CSS Performance
jonrohan
1025
450k
4 Signs Your Business is Dying
shpigford
176
21k
Bootstrapping a Software Product
garrettdimon
PRO
302
110k
Mobile First: as difficult as doing things right
swwweet
217
8.6k
Transcript
Webアプリをできるだけコード を手書きしないで作ってみる 株式会社SAKURUG プロダクトDiv 草場 友光 .NETラボ勉強会2024年4月
自己紹介 • 普段は主にシステムをAzureにモダナ イズする仕事をしています。 • コミュニティ活動を通じて知識をアッ プデートしています。 • 2022/08-2024 Microsoft
MVP (Developer Technologies) • tomo_kusaba
宣伝 【VISION】ひとの可能性を開花させる企業であり続ける VISIONに共感できる仲間募集中。
注意 • 個人の見解・解釈が多分に入っています。 • 見解の相違・事実誤認などありましたらご指摘ください。 • #dotnetlabでtweetすると左側に表示されます
今日の目的 • Visual Studio2022にはコードを自動生成する便利な機能が いくつか備わっています。 • GitHub Copilotはもちろんのこと本日はスキャフォールディン グについて便利と感じてほしいです。
今回使う道具 • Razor Components using Entity Framework(CRUD) • Connected Services
• Github Copilot
Razor Components using Entity Framework(CRUD) • モデルからEntityFrameworkCoreを使用したCRUDができ るRazorコンポーネントを生成 • 前提としてBlazorのServer側レンダリングで実行されること
• スキャフォールディングで生成される表はQuickGridで表示さ れるのでカスタマイズしてソートなど様々な機能を使用可能。
Connected Services • Entity Framework Coreの移行ファイルを作成 • 移行ファイルからデータベースを更新
GitHub Copilot • きっとモデルをよしなに作ってくれる!!
デモ
参考文献 • New Blazor scaffolder (Preview) https://devblogs.microsoft.com/dotnet/announcin g-asp-net-core-in-dotnet-8/#new-blazor- scaffolder-preview •
新しいBlazorスキャフォールディング機能でCRUDしてみる https://zenn.dev/tomokusaba/articles/e610e1e96 bf900
おしまい おしまい
Semantic Kernelでの実装+妹ドメイ ンで配信 • https://github.com/tomokusaba/BuildJapanAIHand sonDay1-1 上記リポジトリがスタート地点 • Semantic Kernelのライブラリーを最新にして、Build
Japan 2023開催当時からの破壊的変更を乗り越えること。 • コメントがある箇所を実装すること。 • 妹GPTにふさわしいプロンプトを作成し実装する(重要) • 妹ドメインにデプロイすること。