Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Swift Backend main executable file.
import Kitura
import HeliumLogger
import CouchDB
let connProperties = ConnectionProperties(
host: "", // httpd address
port: 5984, // httpd port
secured: false, // https or http
username: "candost", // admin username
password: "password" // admin password
let db = Database(connProperties: connProperties, dbName: "kitura_test_db")
let databaseInteraction = DatabaseInteraction(db: db)
let app = MainRouter(db: databaseInteraction)
Kitura.addHTTPServer(onPort: 8090, with: app.router)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.