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
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
870
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
[GoCon2026] When Goroutines Are Not Enough: Runtime Locality in High-Throughput Go
takehaya
4
600
AI駆動開発にグラフDBを重ねてみた
satoshi256kbyte
2
760
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
200
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
340
変化を抱擁するドキュメントの作り方 - ビジネスルール駆動開発がもたらす、コードとの新しい関係
ioki
2
120
Go を使い始めて 2 ヶ月の学び / My first two months with Go
contour_gara
0
420
Seeing Through Serverless: Observability for AWS Lambda with ADOT and CloudWatch Application Signals
seike460
PRO
1
120
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
470
Can LLMs Replicate 4 Years of Compose Migration? Exploring the boundaries of automation with 279 XML files from a real product
makun
0
130
PyO3 で既存 Python 評価器を Rust core 化する ー wasm-bindgen でブラウザにも配るための設計
kdash
1
560
Deep dive into the select statement (GopherCon UK)
jespino
0
170
FastAPI の並行処理モデルを完全に理解する
hoto17296
9
3.8k
Featured
See All Featured
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
660
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
The untapped power of vector embeddings
frankvandijk
2
1.9k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
510
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
820
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2.1k
Utilizing Notion as your number one productivity tool
mfonobong
4
570
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
560
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
580
Between Models and Reality
mayunak
4
450
We Are The Robots
honzajavorek
0
350
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
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