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

案件にVaporを採用した所感

 案件にVaporを採用した所感

omochimetaru

June 07, 2018
Tweet

More Decks by omochimetaru

Other Decks in Programming

Transcript

  1. ߏ੒ docker-compose • nginx(SSL) • mysql • php(api + cms)

    • phpMyAdmin • vapor Πϝʔδ͸ެࣜखॱͰ 7
  2. API ϋϯυϥ΋௥Ճͯ͠Routerʹొ࿥ public protocol APIRequestHandler: APIRequestProtocol { static func handle(request:

    Request) throws -> Future<ResponseType> } ͜ͷลͷαϯϓϧ https://github.com/t-ae/vapor-api-example 11
  3. Ϟσϧͱ͔ϢʔςΟϦςΟ΋ڞ༗ Ұ෦ͷܕ͕ͳ͍ͷͰ෼ذͯࣗ͠࡞ #if Vapor public struct GLKVector2 { public var

    x: Float public var y: Float public init(_ x: Float, _ y: Float) { self.x = x self.y = y } } #endif 12