Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Are You a Droplet? 💧 An Intro to Server-side Swift with Vapor

Are You a Droplet? 💧 An Intro to Server-side Swift with Vapor

This talk was presented at Learn Swift Milan meetup (https://www.meetup.com/it-IT/Learn-Swift-Milan/) in November 2017. It illustrates the basics of Vapor (https://vapor.codes/), one of the available frameworks for backend development in Swift.

Source code for the live coding session presented during the talk is available on Github: https://github.com/para/LearnSwiftMilan-EmojiPets

Alberto Guarino

November 23, 2017
Tweet

More Decks by Alberto Guarino

Other Decks in Programming

Transcript

  1. ARE YOU A DROPLET? AN INTRO TO SERVER-SIDE SWIFT WITH

    VAPOR @ALBEGUARINO • LEARN SWIFT MILAN • 23 NOV 2017
  2. ! vapor.codes > Framework for server-side programming in Swift >

    Open source: github.com/vapor/vapor > Works on: iOS / macOS / Ubuntu
  3. Task Command Create new Vapor project vapor new [projectName] Generate

    Xcode project vapor xcode Build vapor build Run vapor run Powered by swift package manager
  4. A FULLY-FLEDGED FRAMEWORK > Fluent ORM > Leaf templating language

    > Routing > JWT > Caching > Connectors for MySQL, Redis, ... > Cloud deployment
  5. ON STABILITY* Software and cathedrals are much the same: first

    we build them, then we pray - Anonymous * We're not really that concerned here
  6. SOME OF THE PROS > Cool > Great community >

    No need to learn a new language > No need to learn new tools > Sharing code between app and backend
  7. THE PROJECT A simple API for creating and retrieving a

    collection of pets and their emojis (EmojiPets) { "name": "FailPanda", "emoji": " ! " } Source code: https://github.com/para/ LearnSwiftMilan-EmojiPets
  8. MORE INFO > Vapor University > Vapor Cloud > Ray

    Wenderlich - Vapor Tutorials > Realm Academy Video • 23 Oct 2017 > Vapor 3 Docs