Practical talk on how to write your first server on Swift
This talk was given in December 2016, when server-side has been around for just few months. The idea was showing my fellows from SwiftBA meetup what I had researched on the topic during the last month, and give them a practical example (live coding) on how to implement your server.
https://www.meetup.com/SwiftBA/events/234648546/
https://www.youtube.com/watch?v=Wtcfnq8WMdI
4. www.erlang-solutions.com
Where do we start?
● First, you need a framework in order to
have server-side support…
○ (Unless you're so hardcore to DIY)
● There are several:
○ Kitura (IBM)
○ Perfect
○ Vapor
○ Zewo
○ And more...
Case study
5. www.erlang-solutions.com
Which one is better?
https://medium.com/@rymcol/benchmarks-for-the-top-server-side-s
wift-frameworks-vs-node-js-24460cfe0beb#.mb95hntz6
6. www.erlang-solutions.com
Which one is better?
https://medium.com/@rymcol/benchmarks-for-the-top-server-side-s
wift-frameworks-vs-node-js-24460cfe0beb#.mb95hntz6
8. www.erlang-solutions.com
Why using Swift on server-side?
● VIDEO with slides:
https://realm.io/news/tryswift-chris-ro
bert-end-to-end-application-developme
nt-swift-backend/
● SLIDES only:
http://www.slideshare.net/cnbailey/try
swift-nyc-end-to-end-application-devel
opment-in-swift
● https://www.tryswift.co/
13. www.erlang-solutions.com
Let's DO IT!
● Let's create our first server!
○ http://kitura.io/
○ https://github.com/IBM-Swift/Kitura/
● Reminder for Pablo:
○ Do live coding until we get the server running!
22. www.erlang-solutions.com
And so on...
● You will encounter several of these
blockers along the way…
○ Stack Overflow is your friend! :)
○ Google is your BEST friend! :D
26. www.erlang-solutions.com
Swift on Linux
● You can run Swift code on Linux:
○ https://ashfurrow.com/blog/swift-on-linux/
● BUT:
○ macOS environments use Foundation
○ Linux environments use SwiftFoundation
28. www.erlang-solutions.com
The Last Slide
● Server-side Swift is a reality
● However, it's still on its early stages
● So is Swift Package Manager
● Swift on Linux is too green yet (to me)
● Swift is getting everywhere