scrap all the earlier stuff below, and just download the EmojiJournalServer from Davidâs Kitura Stencil tutorial. localhost:8080 will only show Hello, world! but localhost:8080/client works.
ah, except Davidâs version uses an IBM-hosted DB, so it wonât use your local CouchDB Docker container, and all the rest of this tutorial wonât make sense ⊠try replacing Davidâs Application.swift with the one in this tutorial. I have to go out now, but Iâll check back tonight.
hi! I poked around in the [GitHub repo's Package.swift](https://github.com/IBM-Swift/Kitura-StencilTemplateEngine/blob/master/Package.swift) and changed EmojiJournalServer's Package.swift's dependencies â the key for Stencil is Kitura-TemplateEngine.git (no Stencil anymore) at version 2.0.0. I updated a few other versions according to the Package.swift from the Docker Kitura sample. `swift build` is running, currently fetching TypeDecoder.git ... update to this: it seems to be stuck on this, but it's only a minor version update ... I'll let you know what happens.
Update 2: I changed Configuration.git to 3.0.2, but itâs still stuck on TypeDecoder. Iâve slack-messaged @dokun1 . Stay tuned.
Iâll check the rest of the tutorial, then update it to Xcode 4.2 etc.
import PackageDescription
let package = Package(
name: "EmojiJournalServer",
dependencies: [
.package(url: "https://github.com/IBM-Swift/Kitura.git", .upToNextMinor(from: "2.6.0")),
.package(url: "https://github.com/IBM-Swift/HeliumLogger.git", .upToNextMinor(from: "1.8.0")),
.package(url: "https://github.com/IBM-Swift/Kitura-CouchDB.git", .upToNextMinor(from: "2.0.1")),
.package(url: "https://github.com/IBM-Swift/Kitura-TemplateEngine.git", .upToNextMinor(from: "2.0.0")),
.package(url: "https://github.com/IBM-Swift/CloudEnvironment.git", from: "9.0.0"),
.package(url: "https://github.com/IBM-Swift/Configuration.git", from: "3.0.0"),
.package(url: "https://github.com/RuntimeTools/SwiftMetrics.git", from: "2.0.0"),
.package(url: "https://github.com/IBM-Swift/Health.git", from: "1.0.0"),
],
targets: [
.target(name: "EmojiJournalServer", dependencies: ["Configuration", "CloudEnvironment", "SwiftMetrics", "Health", "Kitura", "HeliumLogger", "CouchDB", "KituraStencil"])
]
)