An example using the Kitura web framework and HTTP Server to develop a backend for a todo list organizer
Supports the 05-03 SNAPSHOT.
This project accompanies the tutorial on IBM Developer Works: Build End-to-End Cloud Apps using Swift with Kitura
-
Install the 05-03-DEVELOPMENT Swift toolchain
-
Install Kitura dependencies:
-
Mac OS X:
`brew install curl`
- Linux (Ubuntu 15.10):
`sudo apt-get install libcurl4-openssl-dev`
-
Build TodoList application
-
Mac OS X:
`swift build`
-
Linux:
swift build -Xcc -fblocks
-
Run the TodoList application:
./.build/debug/TodoList
-
Open up your browser, and view:
http://www.todobackend.com/client/index.html?http://localhost:8090
Make sure you are running at least XCode 7.3.
- Automatically generate an XCode project from the Package.swift:
swift build -X
- Open XCode project
open TodoList.xcodeproj
- Switch the toolchain to the open source version of Swift.
To run unit tests, run:
swift test
If you are using XCode, you can run the Test Cases as normal in the IDE.
This library is licensed under Apache 2.0. Full license text is available in LICENSE.