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
Vapor - Swift Server-Side
Search
Giovane Possebon
April 18, 2018
Technology
0
76
Vapor - Swift Server-Side
Giovane Possebon
April 18, 2018
Tweet
Share
More Decks by Giovane Possebon
See All by Giovane Possebon
Sketch and Zeplin
giovanepossebon
0
45
FROM MV(X) TO VIP(ER)
giovanepossebon
0
29
Other Decks in Technology
See All in Technology
AIエージェント開発用SDKとローカルLLMをLINE Botと組み合わせてみた / LINEを使ったLT大会 #14
you
PRO
0
120
2025年夏 コーディングエージェントを統べる者
nwiizo
0
170
dbt開発 with Claude Codeのためのガードレール設計
10xinc
2
1.2k
Aurora DSQLはサーバーレスアーキテクチャの常識を変えるのか
iwatatomoya
1
1k
AWSを利用する上で知っておきたい名前解決のはなし(10分版)
nagisa53
10
3.1k
「全員プロダクトマネージャー」を実現する、Cursorによる仕様検討の自動運転
applism118
21
11k
MCPで変わる Amebaデザインシステム「Spindle」の開発
spindle
PRO
3
3.3k
機械学習を扱うプラットフォーム開発と運用事例
lycorptech_jp
PRO
0
250
Evolución del razonamiento matemático de GPT-4.1 a GPT-5 - Data Aventura Summit 2025 & VSCode DevDays
lauchacarro
0
200
自作JSエンジンに推しプロポーザルを実装したい!
sajikix
1
180
未経験者・初心者に贈る!40分でわかるAndroidアプリ開発の今と大事なポイント
operando
5
640
要件定義・デザインフェーズでもAIを活用して、コミュニケーションの密度を高める
kazukihayase
0
120
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
95
14k
Designing for humans not robots
tammielis
253
25k
How to Ace a Technical Interview
jacobian
279
23k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
Into the Great Unknown - MozCon
thekraken
40
2k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Side Projects
sachag
455
43k
Writing Fast Ruby
sferik
628
62k
Reflections from 52 weeks, 52 projects
jeffersonlam
352
21k
How STYLIGHT went responsive
nonsquared
100
5.8k
Designing for Performance
lara
610
69k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
Transcript
None
GIOVANE POSSEBON RAFAEL LEANDRO iOS Developer iOS Developer @giovanepossebon @CRF_Rafa
None
"Vapor is the most used web framework for Swift” INTRODUÇÃO
brew install Vapor INSTALLATION
TEMPLATES vapor new <projectName> --template=web
vapor build -> vapor run COMPILE & RUN
vapor xcode
FOLDER STRUCTURE
DROPLET “Responsible for registering routes, starting the server, and more…”
/droplet
CONFIG “Responsible for the providers, database preparations, etc…”
/config
ROUTE /user/32 V1
/routes/register
/routes/nesting
/routes/response Response ResponseRepresentable throw
/routes/response
/routes/representable
/routes/throws
PARAMETERS
/parameters/typesafe
/parameterizable
CONTROLLERS
None
/controllers
/controllers
/controllers
PROVIDERS
/provider Adding Provider Importing Provider
/provider Configure Provider
Fluent provides an easy, simple, and safe API for working
with your persisted data FLUENT & MODELS
/model
/prepare/database
/prepare/database id name age <database id type> string int
/model
CRUD
/crud Save Find
/crud Delete All
QUERIES
QUERIES Filter Sort Raw
query/filter Compare Subset
query/sort Basic sort Chaining sorts
query/raw Raw filter Raw query
JSON { }
json
json
drop.view.make(“index.html”) VIEWS
view Rendering HTML
LEAF A simple template language
Leaf #( ) #(variable) #import(template) #export("link") <a href="#( )"></a> #index(friend,
"1") #loop(friends, "friend") { <li>#(friend.name)</li> } #raw() { <a href="#raw">Anything goes!@#$%^&*</a> }
ENVIRONMENT
DEPLOY
vapor cloud deploy
None
None
https://vapor.team
Where to go?
vapor.university
None