SlideShare a Scribd company logo
1 of 92
Download to read offline
letswift(17)
Serverless vs Server-Side
Swift
스위프트 서버 3개월 체험기
bobthedeveloper.ioBob Lee
letswift(17)
목적
요약: 뉴욕 대학생들을 위한
첫 번째 중고나라 앱
출저: 파이어베이스
func 테이블새로고침() {
db.child(“마켓”).observeSingleEventOfType(.Value, withBlock: { (data)
// 데이터가 바뀌면 테이블/콜렉션뷰 자동 업데이트
})
}
Real Time Database
Auth.auth().createUser(withEmail: "bob@bob.com", password: 0000) {
(user, error) in
// ...
}
유저 만들기
Auth.auth().signIn(withEmail: "bob@bob.com", password: 0000) {
(user, error) in
// ...
}
유저 로그인
사진 출저: http://aedi.tistory.com/268
var 공룡테이블 = firebase.database().ref("공룡");
공룡테이블.orderByKey().endAt(“사우루스").on("child_added") { 공룡들 in
print(공룡들);
});
Alamofire.request("https://api/공룡/사우루스").responseJSON { 공룡들 in
print(공룡들)
}
Client Side Code
🍜
면발 코드
가장 큰 두려움
언제 없어질지 모른다
결론
유지보수만 한다
간단한 API다
iOS만 주로 할 것 같다
마켓을 테스트 해보고 싶다
개인 블로그(정도) 만들고 싶다
마이그레이션 자신있다
서버구축
마켓 테스트가 이미 되어 있다
플랫폼/인원 多
시간 대신 돈을 절약하고 싶다
그냥 공부해보고 싶다
서버 쯤이야
스위프트 서버 도전
제 2장
2016년 초 겨울
결정
결정
요약: 팔로워님들 저는
이제 미디엄을 떠나겠
습니다.
스위프트는 미래 백엔
드의 꽃이니 잘 배워서
블로그 서버 만들어 보
겠습니다.
응원 부탁드립니다.
Hopeful:
1 .희망에 찬
2. 기대하는
출저) 네이버 영한 사전
曰
Hosting Storage Database
letswift(17)
며칠 후…
“사기를 치는” - 네이버 영한
아마존 曰
비고) 환율 2017년 7월 17일 기준
1억 5천 9백 만
원
요약: 아마존 AWS고객 센터분들님. 부탁드립
니다
사랑합니다
스위프트 서버
비고) 한국시간 8:30pm
초간단 서버 제작 & 배포해보기 (2분)
요약: vapor new 내폴더이름 —template=api
vapor build
vapor xcode
일단 Compile
1-2분 걸립니다
let config = try Config()
try config.setup()
main.swift
let drop = try Droplet(config)
try drop.setup()
try drop.run()
로컬 서버 호스팅
git add -A
git commit -m “커밋하겠습니다"
그러나
5004600) s: DigiCert Baltimore CA-2 G2 i: Baltimore CyberTru
그날 밤 가장 애용한
문구“What the 삑”
질문쇄도
이거 꼭 해야함?
비교
1000배
요약: 형, 시작할때부터 도와줘서 정말 고마
웠어.베이퍼는 아닌거 같아. 나중에 꼭 돌아올게!
저의 한마디
“아직 이른 듯”
letswift(17)
누구를 위한 것인가
1. 오픈소스 관심 많으신 분
2. Pull Request 하시면서 삶의 희로애락 느끼시는 분
3. 기본실력이 좋아 학습 능력이 빼어나신 분
4. 영어를 좋아하시고 소통하기를 원하시는 분
🌸
전수열(님)
출저 - https://github.com/devxoul
결론
감사합니다
letswift(17)
출저
파이어베이스
https://firebase.google.com/
https://medium.com/@leetheguy/firebase-pros-and-cons-ce37c766190a
https://crisp.chat/blog/why-you-should-never-use-firebase-realtime-database/
https://www.appcoda.com/firebase-push-notifications/
웹서버
https://medium.freecodecamp.org/building-a-chat-application-with-mean-stack-637254d1136d
https://news.ycombinator.com/item?id=12526432
https://news.ycombinator.com/item?id=14356409
베이퍼
https://docs.vapor.codes/2.0/
https://medium.com/@rymcol/benchmarks-for-the-top-server-side-swift-frameworks-vs-node-js-24460cfe0beb
전수열님 프로파일
https://github.com/devxoul
소망
letswift(17)
서버사이드 스위프트 베이퍼
서버사이드 스위프트 베이퍼

More Related Content

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Featured (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

서버사이드 스위프트 베이퍼