Hands-On Server-Side Web Development with Swift
ThisbookisaboutbuildingprofessionalwebapplicationsandwebservicesusingSwift4.0andleveragingtwopopularSwiftwebframeworks:Vapor3.0andKitura2.5.Inthefirstpartofthisbook,we’llfocusonthecreationofbasicwebapplicationsfromVaporandKituraboilerplateprojects.Asthewebappsstartoutsimple,moreusefultechniques,suchasunittestdevelopment,debugging,logging,andthebuildandreleaseprocess,willbeintroducedtoreaders.Inthesecondpart,we’lllearndifferentaspectsofwebapplicationdevelopmentwithserver-sideSwift,includingsettinguproutesandcontrollerstoprocesscustomclientrequests,workingwithtemplateenginessuchasLeafandStenciltocreatedynamicwebcontent,beautifyingthecontentwithBootstrap,managinguseraccesswithauthenticationframework,andleveragingtheObjectRelationalMapping(ORM)abstractionlayer(Vapor’sFluentandKitura’sKuery)toperformdatabaseoperations.Finally,inthethirdpart,we’lldevelopwebservicesinSwiftandbuildourAPIGateway,microservicesanddatabasebackendinathree-tierarchitecturedesign.ReaderswilllearnhowtodesignRESTfulAPIs,workwithasynchronousprocesses,andleveragecontainertechnologysuchasDockerindeployingmicroservicestocloudhostingservicessuchasVaporCloudandIBMCloud.
·6.5萬字