Kitura Tutorial: Getting Started with Server Side Swift

Hi! How did you install CouchDB? Happy to help you figure this out. First, try to visit localhost:5984 and let me know what you see there.

Hi! Let’s see if we can check your install of couchDB - can you tell me what you see when you visit localhost:5984 in a web browser?

By the way, if you would like some more on-demand support, feel free to visit http://slack.kitura.io and either myself or someone else on the Swift @ IBM team will be ready to help :]

hello @dokun1 if i go to localhost:5984 i am getting site cannot be reached and from terminal if i run

curl localhost:5984

i am getting

(7) Failed to connect to localhost port 5984: Connection refused

Finally I could able to get it working by installing couchdb using these instructions: http://docs.couchdb.org/en/1.6.1/install/mac.html
I downloaded and installed the Apache CouchDB native application version 2.1.1
Once I did that I could open http://localhost:5984

1 Like

Thank you for sharing this! It turns out it stopped working on my machine as well, but I tried your solution and it fixed my issue as well :]

I had not installed CouchDB apparently. Not sure how I missed that. Thanks. On to part two! Thank you!

1 Like

hello, I was running through this tutorial and i want to thank you because its very detailed and well done, but when i get to the second to last header “testing your API”, when i run the program i get the error message "use of undeclared type ‘App’ im sorry if this is maybe a dumb and easy fix as im new to Swift.

@dokun1 Can you please help with this when you get a chance? Thank you - much appreciated! :]

1 Like

Hi! I’m glad you’re enjoying the course, thank you for your kind words :smile:

A few questions to try and help you figure this out:

  • can you tell me what scheme Xcode is trying to run this in?
  • on the right hand side, there is a pane where you can see what target a file is assigned to when you have it open. if you have Application.swift open, can you confirm that the assigned target is EmojiJournalServer?

thank you so much for getting back to me, but i actually was able to work it out. The files had different targets which was causing the error.

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!