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
Vapor - Swift Server-Side
Search
Giovane Possebon
April 18, 2018
Technology
83
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Vapor - Swift Server-Side
Giovane Possebon
April 18, 2018
More Decks by Giovane Possebon
See All by Giovane Possebon
Sketch and Zeplin
giovanepossebon
0
54
FROM MV(X) TO VIP(ER)
giovanepossebon
0
40
Other Decks in Technology
See All in Technology
アウトプット初心者、半年間のふりかえり
4o1sobblue
0
430
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
190
Claude Code本は、どのように執筆チームで書かれたか
oikon48
1
380
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
940
宣言型部分更新は何を解決しどこへ向かうのか
shuta13
1
450
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
160
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
150
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
570
触りたくないデータに、どう触るか AI時代のRBACアクセスガバナンス
ivry_presentationmaterials
0
260
夫婦で子育てするための育児標準化
codmoninc
PRO
0
340
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
300
Conditional PED-ANOVA: Hyperparameter Importance in Hierarchical & Dynamic Search Spaces
pfn
PRO
0
130
Featured
See All Featured
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
310
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
450
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
360
Paper Plane (Part 1)
katiecoart
PRO
2
12k
The Limits of Empathy - UXLibs8
cassininazir
2
720
The agentic SEO stack - context over prompts
schlessera
0
970
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
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