Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Swift on Bluemix Hands-on Reference
Search
joohoun song
March 25, 2016
Programming
66
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swift on Bluemix Hands-on Reference
2016/3/25 Swift on Bluemix Hands-on Reference @Co-Edo
joohoun song
March 25, 2016
More Decks by joohoun song
See All by joohoun song
20161031_Pepper-Bluemixワークショップ
hunnycode
1
500
MA2016-Facebook Messenger Platform ハッカソン
hunnycode
0
96
TechUP Makers-IBM Bluemix Watson API Hands-on
hunnycode
0
190
IBM Bluemixによる、Tweetデータ活用方法やツールのご紹介
hunnycode
0
370
IBM BluemixとSwift
hunnycode
0
230
IoTとクラウドセキュリティ(SoftLayer)
hunnycode
0
880
20160830-IBM Cloud Community #5
hunnycode
0
770
BlueHub紹介資料
hunnycode
0
84
IBM Cloud Community 勉強会 #2
hunnycode
0
600
Other Decks in Programming
See All in Programming
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
5.2k
SREの越境 / SRE Collaboration
y0hgi
2
290
SONY CISC-NEWS NWS-1750 + NWB-225 フレームバッファの NetBSD/news68k ドライバ実装 / OSC2026Hiroshima
tsutsui
0
160
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
120
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
100
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
430
フロントエンドUIフレームワークのこれまでとこれから
ssssota
5
3.1k
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
9.2k
巨大モノリシックアプリ モダン化大作戦
ktcryomm
1
1.2k
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
4
340
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
370
テストを司るデーモンに会いに行く 〜隔離した仮想マシンでテストを通すまで〜
h1d3mun3
1
600
Featured
See All Featured
Visualization
eitanlees
153
17k
Designing for Timeless Needs
cassininazir
1
510
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Abbi's Birthday
coloredviolet
4
10k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
290
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
910
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
690
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Facilitating Awesome Meetings
lara
57
7.2k
WENDY [Excerpt]
tessaabrams
14
40k
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