New Course: Server Side Swift with Vapor
Learn about Vapor: the Server-Side Swift web framework. Get everything you need to build powerful APIs and websites in Swift. By Tim Condon.
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Contents
New Course: Server Side Swift with Vapor
5 mins
Have you ever wanted to write your own back-end services, but didn’t know where to start? Do you love Swift and wish you could use it everywhere?
If so, my new course, Server Side Swift with Vapor, is for you!
In this 30-video course, you’ll use Vapor, a server-side Swift web framework, to create a complex application that you can talk to via an API and a website. Let’s have a look at what’s inside.
Part 1: Getting Started with Vapor
In part one, you’ll build your first Vapor application.
- Introduction: Get acquainted with Vapor and review what you’ll be learning throughout this course.
- Hello, World: Create your first Vapor app by installing the Vapor toolbox and building your first routes.
- HTTP Basics: Find out how HTTP works, how requests and responses work, and learn about the different methods and status codes.
- Accepting Data: Learn how to accept data in your Vapor applications and parse it with Codable.
- Challenge: Create Your Own Routes: Challenge time! You will be tasked with creating your own routes, using all the skills learnt in the previous videos.
- Conclusion: Review what you have learnt in the section and see what will be coming up in the next section.
Part 2: Creating an API
In the second part, you’ll learn to create data models with Fluent.
- Introduction: Let’s review what we are going to cover in this section and also learn about what Fluent is and how Async works and why it is important.
- Models and Fluent: Create models using Fluent and configure your databases.
- Controllers and CRUD: Learn how to create controllers to organise routes and how to save and retrieve models using Fluent.
- Finishing CRUD: Retrieve individual models in Fluent using parameters and learn how to update and delete models using Fluent.
- Challenge: Users and Categories: Time to put all of your new knowledge to the test and create your own models and controllers.
- Parent-Child Relationships: Set up parent-child relationships in Fluent and how to query models for the parent-child relationships.
- Sibling Relationships: Set up sibling relationships in Fluent and how to set up queries to retrieve model’s siblings.
- Fluent Queries: Learn how to take advantage of Fluent to perform powerful queries on your databases.
- Persisting Data with MySQL: Setup your Vapor application to use MySQL as a database, using Docker, so your data is persisted.
- Conclusion: Review what you have learnt in the section and see what will be coming up in the next section.
Part 3: Templating with Leaf
Use Leaf to create powerful templates and build a web application in this part of the course.
- Introduction: Let’s review what we are going to learn in the section and have a quick look at Leaf and why it is useful.
- Getting Started with Leaf: Learn how to integrate Leaf into your application and start injecting data into Leaf templates.
- Powerful Templates: Learn how to build powerful templates using for loops and if expressions to generate HTML.
- Embedding Templates: Learn how to take full advantage of Leaf and embed templates in other templates to reduce duplication.
- Beautifying Our App: Learn how to integrate the Bootstrap framework into our application to provide easy styling.
- Challenge: Users and Categories: Put all of your Leaf skills to the test and create your own pages.
- Creating Acronyms: Learn how to send data with web forms and accept the data back in our Vapor application to create models.
- Edit and Delete Acronyms: Learn how to reuse templates to edit models and learn how to delete models on the web.
- Conclusion: Review what you have learnt in this section and see what will be coming up in the next section.
Part 4: Authentication
Try out different kinds of authentication in the final part of the course.
- Introduction: Let’s review what we are going to learn in the section and have a quick look at the different types of Authentication and passwords.
- Passwords: Change your user models to allow authentication with passwords and create a token model.
- API Authentication: Protect APIs with authentication using both HTTP Basic Authentication and Token Authentication.
- Web Authentication: Protect web pages with authentication using sessions and cookies.
- Conclusion: Review what you have learnt in both this section and throughout the course.
We’re Writing a Book, Too!
We’re writing a book about using Vapor 3 that goes beyond what’s covered in this course. We’ve only started, but we’ve opened up pre orders so that you can get a sweet discount on the book and be among the first to receive the early-access digital edition of the book when it’s ready!
Pre-Order the Server Side Swift with Vapor Book
Where To Go From Here?
Want to check out the course? You can watch the entire first part for free!
The rest of the course is for raywenderlich.com subscribers only. Here’s how you can get access:
- If you are a raywenderlich.com subscriber: The first three videos are ready for you today! The rest of the course will be released over the next few weeks. You can check out the course here.
- If you are not a subscriber yet: What are you waiting for? Subscribe now to get access to our new Server Side Swift with Vapor course and our entire catalog of over 500 videos.
Stay tuned for more new and updated courses to come. I hope you enjoy the course! :]