Skip to content

tegi/Kitura-TodoList

 
 

Repository files navigation

Kitura To-do List Backend

An example using the Kitura web framework and HTTP Server to develop a backend for a todo list organizer

Build Status

Supports the 05-03 SNAPSHOT.

Tutorial

This project accompanies the tutorial on IBM Developer Works: Build End-to-End Cloud Apps using Swift with Kitura

Installation

  1. Install the 05-03-DEVELOPMENT Swift toolchain

  2. Install Kitura dependencies:

  3. Mac OS X:

`brew install curl`
  1. Linux (Ubuntu 15.10):
`sudo apt-get install libcurl4-openssl-dev`
  1. Build TodoList application

  2. Mac OS X:

`swift build`
  1. Linux:

    swift build -Xcc -fblocks

  2. Run the TodoList application:

    ./.build/debug/TodoList

  3. Open up your browser, and view:

    http://www.todobackend.com/client/index.html?http://localhost:8090

Developing and Running in XCode:

Make sure you are running at least XCode 7.3.

  1. Automatically generate an XCode project from the Package.swift:

swift build -X

  1. Open XCode project

open TodoList.xcodeproj

  1. Switch the toolchain to the open source version of Swift.

Tests

To run unit tests, run:

swift test

If you are using XCode, you can run the Test Cases as normal in the IDE.

License

This library is licensed under Apache 2.0. Full license text is available in LICENSE.

About

An example using Kitura to develop a Todo-Backend

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%