This project consists of a very simple, server-side Swift application based on Kitura that supports an AngularJS client application that loads data from the Kitura backend and displays the data in a browser-based user interface.
The application performs a very simple service of getting and setting timestamps. The service routes are defined in main.swift on the server and can be consumed by any client—iOS or Android applications, web client, etc. In the case of this sample, the timestamp services are consumed via REST calls made from an AngularJS client service.
- Install Xcode 8 from Apple
- Clone the repository
$ git clone https://github.com/jkingoliver/Kitura-AngularJS.git
$ cd Kitura-AngularJS $ swift build
$ ./build/debug/Kitura-AngularJS