Posts

Showing posts from December, 2017

Development: Running Swift/Vapor in Codeanywhere

Image
Swift was introduced as a proprietary language by Apple in 2014, and it was open-sourced in 2015. Initially, Swift is used mainly for iOS development, but now developers are starting to use it for web development via the server-side Swift frameworks . One of the frameworks is called Vapor , which is the only one currently written purely in Swift. Codeanywhere is a cloud-based development environment, basically consisting of virtual machines (similar to DigitalOcean ) and a full-fledged code editor. Recently, Codeanywhere has started to provide a Swift container (like the Docker concept), for assisting developers to jumpstart Swift development. Unfortunately, the Swift release provided in the container is only version 2.2, while the Vapor framework requires version 3 or above. This article is going to show you how to upgrade the Swift release in the pre-defined container, download the Vapor framework/example, and launch the Vapor example in the Codeanywhere environment. Step 1