# Server Side Swift with Vapor · Hello World | raywenderlich.com

**URL:** <https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269>\
**Category:** 🎓 Courses & Articles\
**Created:** [February 27, 2019, 2:22pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269 "2019-02-27T14:22:47Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [February 27, 2019, 2:22pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/1 "2019-02-27T14:22:47Z")

</div>

* * *
This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/870225-server-side-swift-with-vapor/lessons/2](https://www.raywenderlich.com/870225-server-side-swift-with-vapor/lessons/2)

---

<div class="post-metadata">

**Author:** ![nidupb](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/nidupb/32/91476_2.png) [@nidupb](https://forums.kodeco.com/u/nidupb)\
**Post date:** [March 10, 2019, 8:25pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/2 "2019-03-10T20:25:57Z")

</div>

Hi,

I have a message “Safari can’t connect to localhost”. I tried with chrome, and I tried with replacing localhost by 127.0.0.1, I still have the same message. My firewall is off, any ideas about what could provoke this message ?  
Ps. I’m on a macbook, everything is up to date

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [March 10, 2019, 9:45pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/3 "2019-03-10T21:45:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nidupb](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/nidupb/32/91476_2.png) [@nidupb](https://forums.kodeco.com/u/nidupb)\
**Post date:** [March 11, 2019, 2:29am UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/4 "2019-03-11T02:29:03Z")

</div>

Just figured it out, I did not pick the run-scheme, but the HelloVapor-Package…

---

<div class="post-metadata">

**Author:** ![jankubny](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jankubny/32/102075_2.png) [@jankubny](https://forums.kodeco.com/u/jankubny)\
**Post date:** [May 15, 2019, 5:50pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/5 "2019-05-15T17:50:30Z")

</div>

If you have problem creating the xcode project, just run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer, before vapor xcode…

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 9, 2019, 2:40am UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/6 "2019-07-09T02:40:18Z")

</div>

@jankubny Thank you for sharing this - much appreciated! :]

---

<div class="post-metadata">

**Author:** ![akshaydevkate](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/akshaydevkate/32/81494_2.png) [@akshaydevkate](https://forums.kodeco.com/u/akshaydevkate)\
**Post date:** [December 18, 2019, 7:00pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/7 "2019-12-18T19:00:29Z")

</div>

even after ruuning

> sudo xcode-select-s/Applications/Xcode.app/Contents/Developer

this command i am getting the error

Generating Xcode Project [Failed]  
error: terminated(72): xcrun --sdk macosx --find xctest output:  
xcrun: error: unable to find utility “xctest”, not a developer tool or in PATH

Error: Could not generate Xcode project: error: terminated(72): xcrun --sdk macosx --find xctest output:  
xcrun: error: unable to find utility “xctest”, not a developer tool or in PATH

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [December 18, 2019, 7:14pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/8 "2019-12-18T19:14:52Z")

</div>

Do you have Xcode installed and installed at `/Applications/Xcode.app`?

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [December 18, 2019, 7:15pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/9 "2019-12-18T19:15:38Z")

</div>

And can you post the exact command you ran? You seem to be missing some spaces

---

<div class="post-metadata">

**Author:** ![akshaydevkate](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/akshaydevkate/32/81494_2.png) [@akshaydevkate](https://forums.kodeco.com/u/akshaydevkate)\
**Post date:** [December 18, 2019, 7:20pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/10 "2019-12-18T19:20:38Z")

</div>

> Akshays-MacBook-Air-2:HelloVapor akshaydevkate$ Sudo xcode-select-s/Applications/Xcode.app/Contents/Developer  
> Sudo: xcode-select-s/Applications/Xcode.app/Contents/Developer: command not found

it is saying command not found

---

<div class="post-metadata">

**Author:** ![akshaydevkate](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/akshaydevkate/32/81494_2.png) [@akshaydevkate](https://forums.kodeco.com/u/akshaydevkate)\
**Post date:** [December 18, 2019, 7:31pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/11 "2019-12-18T19:31:04Z")

</div>

> [@jankubny](#):
>
> sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

this helped i was missing some space between -s and /Applications

---

<div class="post-metadata">

**Author:** ![robertomachorro](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/robertomachorro/32/111603_2.png) [@robertomachorro](https://forums.kodeco.com/u/robertomachorro)\
**Post date:** [September 4, 2020, 11:37pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/12 "2020-09-04T23:37:18Z")

</div>

Vapor has changed a small bit since the publishing of this video.  
If you are using Vapor 4.29+, check out the following [Vapor Docs link](https://docs.vapor.codes/4.0/routing/) on how Routes are now handled.

tl;dr

```auto
	app.get("hello", ":name") { req -> String in
		let name = req.parameters.get("name") ?? ""
		return "Hello, \(name)!"
	}

```

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [September 5, 2020, 3:41pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/13 "2020-09-05T15:41:11Z")

</div>

Yep it has, updating the video course is on the todo list after the book!

---

<div class="post-metadata">

**Author:** ![robertomachorro](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/robertomachorro/32/111603_2.png) [@robertomachorro](https://forums.kodeco.com/u/robertomachorro)\
**Post date:** [September 5, 2020, 5:21pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/14 "2020-09-05T17:21:17Z")

</div>

Nice! Keep rockin’

I just saw an update drop yesterday on the book?

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [September 6, 2020, 9:57pm UTC](https://forums.kodeco.com/t/server-side-swift-with-vapor-hello-world-raywenderlich-com/63269/15 "2020-09-06T21:57:46Z")

</div>

Yeah early access is now out, will be a little while until the whole book is updated (waiting on Leaf!)
