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
Swift on Bluemix Hands-on Reference
Search
joohoun song
March 25, 2016
Programming
0
62
Swift on Bluemix Hands-on Reference
2016/3/25 Swift on Bluemix Hands-on Reference @Co-Edo
joohoun song
March 25, 2016
Tweet
Share
More Decks by joohoun song
See All by joohoun song
20161031_Pepper-Bluemixワークショップ
hunnycode
1
490
MA2016-Facebook Messenger Platform ハッカソン
hunnycode
0
87
TechUP Makers-IBM Bluemix Watson API Hands-on
hunnycode
0
180
IBM Bluemixによる、Tweetデータ活用方法やツールのご紹介
hunnycode
0
360
IBM BluemixとSwift
hunnycode
0
220
IoTとクラウドセキュリティ(SoftLayer)
hunnycode
0
850
20160830-IBM Cloud Community #5
hunnycode
0
760
BlueHub紹介資料
hunnycode
0
77
IBM Cloud Community 勉強会 #2
hunnycode
0
590
Other Decks in Programming
See All in Programming
Go言語はstack overflowの夢を見るか?
logica0419
0
670
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
120
CSC305 Lecture 10
javiergs
PRO
0
330
ボトムアップの生成AI活用を推進する社内AIエージェント開発
aku11i
0
1.4k
なんでRustの環境構築してないのにRust製のツールが動くの? / Why Do Rust-Based Tools Run Without a Rust Environment?
ssssota
14
47k
TFLintカスタムプラグインで始める Terraformコード品質管理
bells17
2
510
Researchlyの開発で参考にしたデザイン
adsholoko
0
100
Amazon ECS Managed Instances が リリースされた!キャッチアップしよう!! / Let's catch up Amazon ECS Managed Instances
cocoeyes02
0
120
フロントエンド開発のためのブラウザ組み込みAI入門
masashi
7
3.6k
AI 駆動開発におけるコミュニティと AWS CDK の価値
konokenj
5
310
他言語経験者が Golangci-lint を最初のコーディングメンターにした話 / How Golangci-lint Became My First Coding Mentor: A Story from a Polyglot Programmer
uma31
0
480
社会人になっても趣味開発を続けたい! / traPavilion
mazrean
1
120
Featured
See All Featured
Designing for humans not robots
tammielis
254
26k
Gamification - CAS2011
davidbonilla
81
5.5k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
658
61k
Stop Working from a Prison Cell
hatefulcrawdad
272
21k
Typedesign – Prime Four
hannesfritz
42
2.8k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.7k
Java REST API Framework Comparison - PWX 2021
mraible
34
8.9k
Making Projects Easy
brettharned
120
6.4k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
How to Think Like a Performance Engineer
csswizardry
27
2.2k
Transcript
Swiftコードを使った Webアプリケーションの新しい開発⽅法 - Bluemix Swift runtime - ⽇本IBM @joohounsong
本⽇の流れ。 ・19:00〜19:20 - IBM BluemixとSwiftについて 【ハンズオン】 ・19:20〜20:20 - Swift Dockerイメージ作成&
IBM Bluemix Containersにて環境構築 ・20:20〜21:00 - Bluemix Swiftランタイムを活⽤した、 Swiftウェブアプリの開発 ・21:00〜 - 懇親会 (1,000円) ハンズオンの準備。 ・IBM Bluemix アカウント ・Docker Install ・Docker Hub から Swiftイメージのダウンロード ・Doorkeeperページを参考 CNYVH
IBM Bluemixとは。 オープンスタンダードをベースにした、PaaS(Platform as a Service) http://bit.ly/1RCHgnO
開発環境:ランタイム ・多⾔語環境 ・開発者が開発に集中できる、開発環境を提供 ・5分あれば、開発環境構築完了 http://bit.ly/1RCHgnO
ビルドパックで任意の開発環境が構築できる。 コミュニティビルドパック http://bit.ly/1RCHgnO
100以上のサービスや APIを組み合わせて、 より強くいアプリケーションの 開発ができる。 100以上! 強⼒な開発素材との連動(コンポーザブル)
あっという間に “Hello World” ɾ4UFQɿϥϯλΠϜ͔ΒʮKBWBʯΛબ ɾ4UFQɿʮ࡞ʯΫϦοΫʂ ɾ4UFQɿ63-ΫϦοΫ http://bit.ly/1RCHgnO
メール送信機能実装の例 コーディングを含め、30minあれば⼗分 http://bit.ly/1RCHgnO
スケーラブル システムのリソースをいつでも変更可能。 http://bit.ly/1RCHgnO
スペース:プロジェクトを分けて管理 http://bit.ly/1RCHgnO
コーディングを楽しみましょう。 http://bit.ly/1RCHgnO
ソースコードをデプロイ http://bit.ly/1RCHgnO
Eclipse、IDS(IBM DevOps Service)、CF CLI、 GitHubなど ・Eclipse Eclipse PluginでBluemixと連携 ・IDS クラウドベースの開発環境
・CF CLI Cloud Foundryによるコマンド操作 ・GitHub GitHubで管理されているプロジェク トとの連携 様々な開発環境やツールとの連携 http://bit.ly/1RCHgnO
ΤσΟλʔ ݁Ռ http://bit.ly/1RCHgnO
Swift on the IBM Cloud ΤσΟλʔ ݁Ռ IBM InterConnectにて、多数のSwift関連新プロジェクトを発表。 http://bit.ly/1RCHgnO
݁Ռ Swift on the IBM Cloud ・Swiftのコードがそのままクラウド上で実装可能。 ・普通のエディターによる開発が可能。 ・約5分あれば、Swiftウェブアプリ開発環境構築 ・オープンソースとして開発されている
(Cloud Foundry buildpack) http://bit.ly/1RCHgnO
ΤσΟλʔ ݁Ռ IBM Bluemix Swift runtime http://bit.ly/1RCHgnO
݁Ռ Swift on the IBM Cloud ・イベント駆動型ランタイム環境。 ・Swift、JavaScript、Node.jsのアプリが実⾏可能。 ・各Feedをトリガーにし、登録されている処理が起動。 ・外部のサービスとして、Cloudant、Github、Watson、
Slackなど利⽤可能。(2016.3 現在) http://bit.ly/1RCHgnO
ΤσΟλʔ ݁Ռ OpenWhisk http://bit.ly/1RCHgnO
݁Ռ Swift on the IBM Cloud ・IBM Bluemix Docker Container上で起動。
・ブラウザ上で、Swiftコードを試せる。 ・Swiftコードのエラーチェック。 ・Swiftコードのアウットプット(結果)をすぐ確認。 http://bit.ly/1RCHgnO
Swift Sandbox ΤσΟλʔ ݁Ռ IUUQTTXJGUMBOHOHCMVFNJYOFU http://bit.ly/1RCHgnO
Swift on the IBM Cloud ݁Ռ ,*563"ʁ 4XJGUͰ։ൃͰ͖Δ ΣϒΞϓϦέʔγϣϯ༻ϑϨʔϜϫʔΫ https://github.com/IBM-Swift/Kitura
http://bit.ly/1RCHgnO
KITURA ΤσΟλʔ ݁Ռ IUUQTHJUIVCDPN*#.4XJGU,JUVSB http://bit.ly/1RCHgnO
Swift Framework https://github.com/qutheory/vapor Perfect https://github.com/PerfectlySoft/Perfect https://github.com/mattdonnelly/Swifter VAPOR https://github.com/IBM-Swift/Kitura KITURA Swifter
http://bit.ly/1RCHgnO
Facebook Group https://facebook.com/groups/bmxug twitter #bmxug http://ja.stackoverflow.com/questions/ tagged/bluemix stackoverflow(コミュニティQ&A) Qiita http://qiita.com/tags/Bluemix
・タグフォロー ・Advant Calendar 購読
ハンズオンタイム ݁Ռ ・IBM Bluemix Swift ランタイム作成 ・ソースコードダウンロード ・ソースコード修正 ・ソースコードデプロイ(CF CLI)
・確認 http://bit.ly/1RCHgnO
ハンズオンタイム 初めての⽅は、 「+ スペースの作成」から スペースを作成します。 ⽶国南部を 選びましょう。
ハンズオンタイム ݁Ռ ① ダッシュボード ② スペース作成 or 選択 ③ Cloud
Foundry アプリ ᶃ ᶄ ᶅ
ハンズオンタイム ݁Ռ ᶃ ᶄ ᶅ ① WEB選択 ② Swift選択 ③
続⾏クリック!
ハンズオンタイム ① アプリ名を⼊⼒ ② 完了クリック! ③ URLクリック! ④ ブラウザにて確認。 ᶃ
ᶄ ᶅ ᶆ
ハンズオンタイム Swiftランタイム完成!
ハンズオンタイム ① コーディング開始クリック ② スターター・コードの ダウンロードクリック ᶃ ᶄ
ハンズオンタイム ダウンロードされたソースコードを解凍し、皆さんの作業フォルダーに 移動させます。(ダウンロードフォルダーでも問題ない。)
ハンズオンタイム Sources/Server/main.swift 編集
ハンズオンタイム アプリの「コーディングの開始」にある、デプロイ⼿順に沿って、 修正されたコードをBluemixにプッシュ!
None