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
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
95
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
870
20160830-IBM Cloud Community #5
hunnycode
0
770
BlueHub紹介資料
hunnycode
0
83
IBM Cloud Community 勉強会 #2
hunnycode
0
600
Other Decks in Programming
See All in Programming
Android CLI
fornewid
0
210
AIが無かった頃の素敵な出会いの話
codmoninc
1
390
What's New in Android 2026
veronikapj
0
250
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
460
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
580
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
670
OpenSpecのproposalにbrainstormingを持たせてみた
tigertora7571
1
210
これって Effect でできたのでは? / TSKaigi Mashup Kansai #2
susisu
0
150
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
210
yield再入門 #phpcon
o0h
PRO
0
980
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
140
Laravelで学ぶ Webアプリケーションチューニング入門/web_application_tuning_101
hanhan1978
4
1.7k
Featured
See All Featured
Mind Mapping
helmedeiros
PRO
1
300
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
260
Into the Great Unknown - MozCon
thekraken
41
2.7k
Google's AI Overviews - The New Search
badams
0
1.1k
Deep Space Network (abreviated)
tonyrice
0
250
Between Models and Reality
mayunak
4
390
Designing Powerful Visuals for Engaging Learning
tmiket
1
480
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.9k
The agentic SEO stack - context over prompts
schlessera
0
860
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
440
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
230
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