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
78
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
48
FROM MV(X) TO VIP(ER)
giovanepossebon
0
31
Other Decks in Technology
See All in Technology
Red Hat OpenStack Services on OpenShift
tamemiya
0
110
15 years with Rails and DDD (AI Edition)
andrzejkrzywda
0
200
Kiro IDEのドキュメントを全部読んだので地味だけどちょっと嬉しい機能を紹介する
khmoryz
0
200
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
2
380
セキュリティについて学ぶ会 / 2026 01 25 Takamatsu WordPress Meetup
rocketmartue
1
310
学生・新卒・ジュニアから目指すSRE
hiroyaonoe
2
630
OCI Database Management サービス詳細
oracle4engineer
PRO
1
7.4k
Bedrock PolicyでAmazon Bedrock Guardrails利用を強制してみた
yuu551
0
240
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
2.8k
モダンUIでフルサーバーレスなAIエージェントをAmplifyとCDKでサクッとデプロイしよう
minorun365
4
210
SREチームをどう作り、どう育てるか ― Findy横断SREのマネジメント
rvirus0817
0
300
AIエージェントを開発しよう!-AgentCore活用の勘所-
yukiogawa
0
170
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
Building Applications with DynamoDB
mza
96
6.9k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
370
Unsuck your backbone
ammeep
671
58k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
450
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
910
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
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