This course is offered as a part of the raywenderlich.com Skilled subscription. To be taught extra click on right here

Professional

Apr 5 2022 · Video Course (3 hrs, 21 minutes) · Intermediate

On this course you’ll be taught all the things you should get begin with Vapor, the Server-Facet Swift
net framework. You’ll cowl the fundamentals of routing and sending and receiving information. Subsequent you’ll be taught
methods to use Fluent to save lots of and retrieve data in a database. You’ll see methods to leverage Leaf,
Vapor’s templating language, to construct an internet app. You’ll learn to add authentication to your routes
and defend your app. Lastly you’ll see methods to combine the Vapor API with an iOS companion app.

Model

  • Swift 5.4, Vapor, Xcode 12 and VSCode



Getting Began With Vapor

On this episode get a short introduction to the course and see the various things we’ll be taught within the subsequent 6 movies.


On this episode learn to set up the Vapor toolbox to create your first Vapor challenge! Be taught
the very fundamentals of routing to see methods to create your individual routes.


On this episode, be taught a few of the fundamentals of HTTP that you simply’ll want to grasp for Vapor. We’ll cowl requests and responses
and have a look at the totally different HTTP strategies. Lastly be taught in regards to the totally different components of an HTTP message – the top and the physique – so we
know methods to ship and obtain information.


On this episode, see methods to use Codable to ship and obtain information with Vapor. Discover ways to settle for incoming information as JSON and
return JSON responses.


It’s time to place all the things you’ve discovered to date into apply and create your individual routes as a part of a problem! Create 3 totally different routes
to cowl new routes, parameters and sending and receiving JSON.


Within the conclusion for half 1 we’ll evaluation all the things we’ve lined to date. Then, we’ll see what’s developing subsequent in Part 2 – thrilling!


Creating an API

On this episode get a short introduction to the part and see the various things we’ll be taught to work with Fluent and fashions.


On this episode, take a deep dive into asynchronous programming and see methods to work with async code in Vapor.


On this episode, learn to use Fluent to create a mannequin and put it aside within the database.


On this episode, learn to write controllers to create routes. You’ll additionally find out about CRUD
and methods to arrange routes and create and retrieve fashions.


On this episode, learn to write the ultimate routes to complete the CRUD operations – getting a single
mannequin, updating a mannequin and deleting a mannequin.


It’s time for one more problem! On this episode, put what you’ve discovered into apply and create
your individual fashions and controlllers.


On this episode, learn to arrange a parent-child relationship between two fashions after which question the
relationship.


On this episode, learn to arrange a sibling relationship between two fashions utilizing a pivot desk.
You’ll then see methods to question the connection with a route.


On this episode, learn to write queries in Fluent to filter on totally different properties to create a
route for looking out fashions.


On this episode we’ll evaluation everythig you’ve discovered on this part. Then, we’ll check out what’s coming
up within the subsequent part.


Templating With Leaf

On this episode, get an introduction to this part and see what you’ll be taught with Leaf to create an internet
utility in Swift.


On this episode, combine Leaf into your utility and arrange an HTML web page you may view within the
browser.


On this episode, take your templates to the following degree and learn to dynamically generate HTML to make
your net utility work with any acronym.


On this episode, learn to embed templates in different templates to keep away from duplicating code throughout pages.


On this episode, learn to use Bootstrap to type your utility and make it look wonderful. You’ll
additionally learn to serve static information, like photographs from Vapor.


It’s time for one more problem! On this episode you’ll take what you’ve discovered to date to construct your individual HTML
pages for customers and classes.


On this episode, learn to create an HTML kind to ship information to Vapor and use the info to save lots of a brand new
acronym.


On this episode, learn to edit and delete acronyms and see the distinction between working with an
API and HTML pages.


On this episode we’ll evaluation everythig you’ve discovered on this part. Then, we’ll check out what’s coming
up within the subsequent part.


Authentication

On this episode, get an introduction to this part and canopy the fundamentals of authentication and utilizing
passwords.


On this episode, find out about passwords and methods to add them to your consumer mannequin. You’ll additionally see
methods to use Bcrypt to correctly defend passwords when saving them within the database.


On this episode, see methods to add authentication to the totally different API routes. You’ll learn to use
middleware to guard routes and the way authenticated customers work in Vapor.


On this episode, see methods to add authentication to the web site a part of your Vapor app. You’ll find out about
classes and see how authentication is totally different on the internet in comparison with an API.


On this episode we’ll evaluation everythig you’ve discovered on this part. Then, we’ll check out what’s coming
up within the subsequent part.


The iOS App

On this episode, get an introduction to this part and see what components of the API the iOS app will use.


On this episode, learn to get the iOS app to ship requests to show the totally different fashions saved in
the API.


Now that you’ve got added a web page within the iOS app to view acronyms, on this episode you’ll learn to create and
delete them. You’ll learn to add new pages and ship requests to the API to carry out the actions you need.


On this episode, learn to arrange a relationship between acronyms and classes in an iOS app with a
nice consumer expertise.


On this conclusion video, we’ll evaluation what you have got discovered in each this part and all through the course.


Model historical past

Vapor, Swift 5.4, Xcode 12 and VSCode
(Chosen)

Apr 5 2022

macOS 10.14, Swift 4, Xcode 10

Feb 25 2019

Swift 4, Xcode 9

Feb 13 2018

Who is that this for?

Builders snug with Swift who need to see methods to use Swift on the backend.

Lined ideas

  • Routing
  • Databases
  • Leaf and HTML
  • Authentication

Contributors

On this course you’ll be taught all the things you should get begin with Vapor, the Server-Facet Swift
net framework. You’ll cowl the fundamentals of routing and sending and receiving information. Subsequent you’ll be taught
methods to use Fluent to save lots of and retrieve data in a database. You’ll see methods to leverage Leaf,
Vapor’s templating language, to construct an internet app. You’ll learn to add authentication to your routes
and defend your app. Lastly you’ll see methods to combine the Vapor API with an iOS companion app.