Menu
  • Home
  • About Me
SwiftyJimmy
Software development with Swift

Server-side swift examples

Examples and post of using server-side Swift. I started to learn server-side Swift at the end of the year 2016. I chose Vapor since at the time it had best documentation and tutorials. I started from scratch and created a sample project called Friend Service. You can Create, Read, update and Delete information from the service. You can find more information about the project here: FriendService.

By the time I started Vapor 1.0 was released. Since then, there has been a lot of progress on the server-side Swift and also Vapor has released 2.0 version. I am planning to make friend service a solid service step-by-step, so I already updated it to use Vapor 2.0. You can find the post here: Update project to Vapor 2.0. I will update the project everytime I develop the project further. Next I’ll add some error handling.

You can find all the source code from GitHub.

Server-side Swift with Vapor 3 – backend set up

Server-side Swift with Vapor 3 – backend set up

  • Posted on March 26, 2019
  • /Under Server-side swift examples
Today I wanted to write about Server-side Swift and how to set up a basic backend with Vapor 3 framework. We'll go through how to create a simple CRUD backend which we can use to create, remove, update and delete information. We accomplished all this by creating a project called…continue reading →
Deploy your server-side swift project to Vapor cloud

Deploy your server-side swift project to Vapor cloud

  • Posted on October 30, 2017
  • /Under Server-side swift examples
Testing Vapor cloud for hosting a server-side Swift application. Last week I watched Tanner Nelsons try!Swift NY talk about Vapor. Tanner is the person behind the Vapor framework, so I was pretty excited when someone tweeted the talk. I've been keeping my eye on server-side Swift development for about a…continue reading →

Validate input data using Validator in Vapor 2.0

  • Posted on September 20, 2017
  • /Under Server-side swift examples
This time I will talk about how you can validate data with Vapor 2.0. I'll go through the basics and also how you can use them inside the Model objects. It is important that the users of your service can't insert invalid data to your system. So, you must always…continue reading →
Server-side Swift update project to Vapor 2.0

Server-side Swift update project to Vapor 2.0

  • Posted on August 29, 2017
  • /Under Server-side swift examples
Hello friends! In this blog post I'll tell you all you need to do to update your server-side-swift Vapor project from version 1.0 to 2.0. At the start of 2017 I did a small server-side-swift project named FriendService using Vapor 1.0. I wanted to develop it a bit further and add some error handling, so that it…continue reading →
Server-side Swift, how to set up a Vapor backend

Server-side Swift, how to set up a Vapor backend

  • Posted on January 22, 2017
  • /Under Server-side swift examples
  • /With 0 Comments
I finally found the time to test server-side Swift by setting up a Vapor backend. This is something I've wanted to test for some time but before swift 3.0 was released it seemed a little bit too much work. Most of the frameworks were also in work in progress state…continue reading →
Search
Categories
  • How to do unit testing in Swift
  • How to use RxSwift with MVVM
  • Model-View-ViewModel with swift
  • Server-side swift examples
  • Uncategorized
Recent Posts
  • Server-side Swift with Vapor 3 – backend set up March 26, 2019
  • Unit testing RxSwift application with XCTest framework October 6, 2018
  • Network request with RxSwift example September 23, 2018
  • How to use RxSwift with MVVM pattern part 2 August 31, 2018
  • How to use RxSwift with MVVM pattern July 18, 2018
Subscribe to a montly news letter
Recommended Books
  • The Pragmatic Programmer
  • Domain Driven design
  • iOS 11 Programming Fundamentals with Swift
  • Swift Programming: The Big Nerd Ranch Guide