Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
Submit search
EN
Uploaded by
Satoshi KOBAYASHI
PDF, PPTX
2,789 views
サーバーサイドDartを試してみる
「Angular 4 の最新動向と、2017年再注目のDart、そしてAngular Dart 」Dart の部 3/3 on 2017.3.6
Technology
◦
Read more
3
Save
Share
Embed
Embed presentation
Download
Download as PDF, PPTX
1
/ 18
2
/ 18
3
/ 18
4
/ 18
5
/ 18
6
/ 18
7
/ 18
8
/ 18
9
/ 18
10
/ 18
11
/ 18
12
/ 18
13
/ 18
14
/ 18
15
/ 18
16
/ 18
17
/ 18
18
/ 18
More Related Content
PDF
15分でわかった気になるdart
by
Satoshi KOBAYASHI
PDF
Web制作で培ってきたFlashのリッチな表現力をモバイルアプリに
by
invogue
PDF
はじめてのDart
by
Takuya Kawabe
PPTX
XAML + C#で開発するときのVisual Studio 2013(とBlend)の便利機能
by
一希 大田
PDF
お気に入り拡張機能
by
SatsukiYabu
PDF
Clojureに入門してみた、2017年秋
by
Satoshi KOBAYASHI
PDF
Angular+Dart=より快適なSPA開発
by
Satoshi KOBAYASHI
PDF
マークアップエンジニアと情報アーキテクチャ
by
力也 伊原
15分でわかった気になるdart
by
Satoshi KOBAYASHI
Web制作で培ってきたFlashのリッチな表現力をモバイルアプリに
by
invogue
はじめてのDart
by
Takuya Kawabe
XAML + C#で開発するときのVisual Studio 2013(とBlend)の便利機能
by
一希 大田
お気に入り拡張機能
by
SatsukiYabu
Clojureに入門してみた、2017年秋
by
Satoshi KOBAYASHI
Angular+Dart=より快適なSPA開発
by
Satoshi KOBAYASHI
マークアップエンジニアと情報アーキテクチャ
by
力也 伊原
Featured
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
by
Search Engine Journal
PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
by
OECD Directorate for Financial and Enterprise Affairs
PDF
Storytelling For The Web: Integrate Storytelling in your Design Process
by
Chiara Aliotta
PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
by
SocialHRCamp
PDF
Everything You Need To Know About ChatGPT
by
Expeed Software
PDF
Getting into the tech field. what next
by
Tessa Mero
PDF
ChatGPT and the Future of Work - Clark Boyd
by
Clark Boyd
PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health
by
ThinkNow
PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent
by
Lily Ray
PDF
2024 State of Marketing Report – by Hubspot
by
Marius Sescu
PDF
Product Design Trends in 2024 | Teenage Engineerings
by
Pixeldarts
PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
by
marketingartwork
PDF
5 Public speaking tips from TED - Visualized summary
by
SpeakerHub
PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024
by
Search Engine Journal
PDF
Social Media Marketing Trends 2024 // The Global Indie Insights
by
Kurio // The Social Media Age(ncy)
PDF
Skeleton Culture Code
by
Skeleton Technologies
PDF
Content Methodology: A Best Practices Report (Webinar)
by
contently
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024
by
Neil Kimberley
PPTX
How to Prepare For a Successful Job Search for 2024
by
Albert Qian
PDF
How to have difficult conversations
by
Rajiv Jayarajah, MAppComm, ACC
2024 Trend Updates: What Really Works In SEO & Content Marketing
by
Search Engine Journal
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
by
OECD Directorate for Financial and Enterprise Affairs
Storytelling For The Web: Integrate Storytelling in your Design Process
by
Chiara Aliotta
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
by
SocialHRCamp
Everything You Need To Know About ChatGPT
by
Expeed Software
Getting into the tech field. what next
by
Tessa Mero
ChatGPT and the Future of Work - Clark Boyd
by
Clark Boyd
How Race, Age and Gender Shape Attitudes Towards Mental Health
by
ThinkNow
Google's Just Not That Into You: Understanding Core Updates & Search Intent
by
Lily Ray
2024 State of Marketing Report – by Hubspot
by
Marius Sescu
Product Design Trends in 2024 | Teenage Engineerings
by
Pixeldarts
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
by
marketingartwork
5 Public speaking tips from TED - Visualized summary
by
SpeakerHub
Trends In Paid Search: Navigating The Digital Landscape In 2024
by
Search Engine Journal
Social Media Marketing Trends 2024 // The Global Indie Insights
by
Kurio // The Social Media Age(ncy)
Skeleton Culture Code
by
Skeleton Technologies
Content Methodology: A Best Practices Report (Webinar)
by
contently
PEPSICO Presentation to CAGNY Conference Feb 2024
by
Neil Kimberley
How to Prepare For a Successful Job Search for 2024
by
Albert Qian
How to have difficult conversations
by
Rajiv Jayarajah, MAppComm, ACC
サーバーサイドDartを試してみる
1.
「Angular 4 の最新動向と、2017年再注目のDart、そしてAngular
Dart 」 Dart の部 3/3 HRMOS事業部 小林 達 at BizReach on 2017.3.6 サーバーサイド Dart を試してみる
2.
自己紹介 ✓ 小林 達
(こばやしさとし) ✓ HRMOS[ハーモス]プロダクト開発部 ✓ こぼれ球拾いが気軽にできると嬉しい昨今 ▶ さくっと使えて引き継ぎやすい武器が欲しい
3.
なぜ?
4.
Googleさんの注力はAngularとFlutter(アプリ)。。 サーバサイドは分野は正直流行っていない。。が、しかし、 ✓ 言語仕様の簡潔な静的言語として、サーバでも生産性が期待できるのでは? ✓ 標準ライブラリが充実しているので、リッチなフレームワークがなくてもちょっとした 用途に使えるのでは? サーバーサイド
Dart ?
5.
もしつかえるならば、 ちょっとした用途、つまり、 ✓ 社内サービスだけどフロントリッチなのがさっと作れたりするのでは? ✓ フロントメインの人にとっても、とっつきやすいのでは? ✓
2本め、3本めの武器として使い回しが効くのでは?
6.
フレームワークを選ぶ
7.
Webフレームワークの選択 ✓ ALL-IN-ONEなら、Aqueduct の開発はアクティブなのでいいかも ●
stablekernelがバックアップ(アトランタのスタートアップ?) ● Dart Developer Summit でも発表あり ● DI, ORM, 認証, テンプレート, テスト, DBマイグレーションなどの機能 ✓ シンプルなら、純正のShelfが第一候補 ● shelf_xxx など機能ごとにパッケージが分かれている ● フレームワークというより、フレームワークの構成部品という位置づけなので、 初心者にはとっつきづらいかも ✓ 中間的な選択肢として、
8.
Redstone をチョイス
9.
Redstone をチョイス Awesome Dart
リストから見ていって選んだ。 ✓ Shelf を利用したラッパー ✓ ぱっと見分かりやすい ✓ 比較的アクティブ ✓ ALL-IN-ONEではないので、DBアクセスなどは別途チョイスが必要
10.
書いてみる
11.
Hello World ! server.dart
ファイルに main関数とhelloworld関数 を追加して、dart コマンドで起動すれば立ち上が る。シンプル。 ※ 実際には、以下を先に実施 1. stagehand で server-shelf のテンプレート作成 2. pubspec.yaml の依存を変更 3. pub get @web.Route("/") helloWorld() => "Hello, World!"; void main() { web.setupConsoleLog() ; web.start(); } ❯❯❯ dart bin/server.dart ⏎ INFO: 2017-03-03 11:23:56.494179: Configured target for / [GET]: .helloWorld INFO: 2017-03-03 11:23:56.523415: Running on 0.0.0.0:8080
12.
Hello World !
13.
URLからのパラメータ取得 getUser関数を書く。 @web.Route("/user/find/:id") getUser(String id) => {"userId":
id, "name": "User", "login": "user"}; @web.Route("/") helloWorld() => "Hello, World!";
14.
DI、Future、JSON class HeroService { Future<List<Hero>>
getHeroes() { … } } @web.Group("/heroes") class HeroController { HeroService _service; HeroController(this._service); @web.Route("/list") service() => _service.getHeroes() .then((heroes) => { "heroes": heroes}); } void main() { web.addModule(new Module() ..bind(HeroService)) ; web.setupConsoleLog() ; web.start(); } ✓ DIは、AngularのDIライブラリ (di.dart)をベースにしたもので、 ルーティングなどで利用。 ✓ Futureで返したレスポンスは、そ のまま返せる。 1 1 1 2 2
15.
DI、Future、JSON ✓ /heroes/list へアクセス。 (Hero
の toJson() は略) class HeroService { Future<List<Hero>> getHeroes() ... } @web.Group("/heroes") class HeroController { HeroService _service; HeroController(this._service); @web.Route("/list") service() => _service.getHeroes() .then((heroes) => { "heroes": heroes}); } void main() { web.addModule(new Module() ..bind(HeroService)) ; web.setupConsoleLog() ; web.start(); } 3 3
16.
もっと学べそうなリソースもあった ✓ 公式サイト ● Write
HTTP Clients & Servers ✓ 1時間コードラボ? ● https://github.com/dart-lang/one-hour-codelab
17.
まとめ
18.
まとめ ✓ 奇をてらった感じがない。とっつきやすい ! ✓
開発していて楽しい ! ✓ スタブサーバとして使うのはありかも ● フロントエンドエンジニア主体でメンテできる感がある ● 少しずつスキルを広げられそう ✓ Redstoneをプロダクションに使うには不安 ● 品質とかより、今後の展望的に。ドキュメントもあまりない ✓ 小さなものであれば、自分達で作ってもいいのかもしれない ● 勉強不足ですが、ドキュメントは結構ある。 ● ライブラリのコードも読もうと思えば読める
Download