Questions tagged [kitura]

This tag should be used to discuss issues related to the Swift server framework Kitura.

Kitura is a server framework developed by IBM and written in the Swift programming language. This tag should be used when discussing issues and errors regarding the operation of Kitura. The tag should not be used for erroneous code that is running on Kitura if the framework has no relation to the error at hand.

89 questions
0
votes
1 answer

Can't build Kitura Server using Postgres Adapter with Swift 3.1

I'm currently trying to build an example Kitura server accessing a Postgres Database. There are several example projects in github, originally published by IBM. But with a big comment across the top stating they no longer support this project. The…
ahalls
  • 1,095
  • 1
  • 12
  • 23
0
votes
1 answer

CouchDB Kitura Executing a View

I am using the following code to execute Swift code using Kitura against CouchDB. database.queryByView("high-priority-tasks", ofDesign: "polls", usingParameters: [], callback: { (json: JSON?, error :NSError?) in if error != nil { …
john doe
  • 9,220
  • 23
  • 91
  • 167
0
votes
1 answer

Swift kitura multi language support

Is there any multi language support for the Swift kitura framework? I would like to use the mustache template engine which is available as kitura component.
ideveloper
  • 473
  • 1
  • 4
  • 10
0
votes
1 answer

Errors when running unit tests in Kitura

I am new to the Kitura and Xcode and facing some issues when adding test files. It seems to be related to the @testing directive. I have setup the same as shown on Kitura website. When I invoke in the console swift build then swift test I get…
kkris1983
  • 471
  • 1
  • 7
  • 15
0
votes
2 answers

Save data using Kitura - Swift

I am doing a POC to save data into CouchDB using IBM' Kitura application. I am able to upload some data in CouchDB using scripts and able to fetch and send that using a web API. Similarly, I want another API that accepts data in JSON format and…
Abhinav
  • 37,684
  • 43
  • 191
  • 309
0
votes
1 answer

How to deploy Kitura generated Server Side Swift Build on Tomcat

I wanted to check if somebody has explored the option of deploying Kitura compiled project on TomCat? Basically, is it possible to deploy the build outside IBM cloud environment?
Abhinav
  • 37,684
  • 43
  • 191
  • 309
0
votes
1 answer

Session routes in Kitura?

In Vapor, I can easily secure routes in a login session with this: drop.group(protect) { secure in secure.get("secureRoute", handler: ) secure.post("securePostRoute", handler: ) //and so forth } And the handler proceeds as usual, no…
Berry
  • 2,143
  • 4
  • 23
  • 46
0
votes
1 answer

Issues with redirected URLs involving Swift 3.0.2

I am trying to load a URL that redirects. It works fine on Mac OS, but when I push it to Bluemix using Kitura 1.4 server, Swift 3.0.2 I get the following load error: The operation could not be completed Here is my relevant code: … let gShort =…
0
votes
1 answer

Using custom Stencil tag in Kitura

Following the instructions in the Stencil documentation, I registered a simple custom tag: let ns = Namespace() ns.registerSimpleTag("contact") { context in return "contact us" } but I can't see how to pass the namespace…
MacAvon
  • 15
  • 3
0
votes
2 answers

Possible to exchange objects between Swift app and backend?

As I currently understand it one way to do it is to use JSON. But it would seem better and easier to just send the swift object to the server making sure the server has the same class available. This way I can just keep using swift every step of the…
Jeffrey
  • 3
  • 3
0
votes
2 answers

Error when deploying Swift Application On Bluemix error: hidden symbol Foundation Operations

I am trying to deploy an application on BlueMix. I can run the application locally on my computer, but cannot deploy it on BlueMix. I believe the error is being caused by some Library or function under a library that is missing. Looking at the trace…
zirinisp
  • 9,971
  • 5
  • 32
  • 38
0
votes
5 answers

Error when Call curlHelperSetOptString from module CCurl - swift -Kitura

i use CCurl (https://github.com/IBM-Swift/CCurl.git) in my project (Kitura https://github.com/IBM-Swift/Kitura) then i call func curlHelperSetOptString , compile "swift build" and get an error: duplicate symbol _curlHelperSetOptString in: …
duck
  • 47
  • 5
0
votes
1 answer

Sending HTTP POST to Kitura works wrong on Bluemix

I created a simple REST on Kitura. When I run it on your Mac, it works fine. GET / POST / PUT / DELETE are executed. When I run it on bluemix, GET method works correctly, but the POST is wrong. In response to the POST I should return JSON to create…
-2
votes
1 answer

Is there something like KVO in Kitura?

Is there anything like KVO in Kitura? I know that this is something from Objective-C that we can use in iOS, but is there anything like that for observation? Thanks!
1 2 3 4 5
6