Skip to content

Commit bc98b16

Browse files
committed
Create detail
1 parent 427fa19 commit bc98b16

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

Detail.md

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
# 1
22

3-
* Make sure your Github account is working. How do we do that? Make sure you can login to your Github account [here](https://github.com/). If you don't have an account, please make one now.
4-
5-
* After logging in, you should see something similar to this:
6-
![git](http://i.imgur.com/hBeBGXG.png)
7-
8-
* All of the labs you will be asked to complete moving forward are hosted on [Github](https://github.com/learn-co-curriculum) and they are open-sourced! [Here](https://www.objc.io/issues/22-scale/artsy/) is a great article regarding _open source by default_ by Orta Therox, Ash Furrow, Laura Brown, and Eloy Duran.
9-
10-
# 2
11-
123
* Lets step through solving a lab together. Scroll to the top of the page like so:
134

145
![](http://i.imgur.com/55YJ1BY.png?1)
@@ -29,36 +20,35 @@
2920

3021
* When you tap that button/link, you should be directed to a page that looks like this:
3122

32-
![GitHub Lab](http://i.imgur.com/Gz74eYS.png?1)
23+
![GitHub Lab](https://s3.amazonaws.com/learn-verified/HelloUniverseFirst.png)
3324

3425

3526
* Well, that looks familiar. Sticking with our analogy, we've found our way to the original copy of the exam! What we were looking at before was Learn taking this exact file and presenting it to you in its own way.
3627
* If you look hard enough on this page, you should find the Fork button in the upper right corner of the screen below your profile image.
3728
* When you tap the Fork button, you should be presented with the following screen:
3829

39-
![ForkTap](http://i.imgur.com/0a1JvcQ.png?1)
30+
![ForkTap](https://s3.amazonaws.com/learn-verified/HelloUniverseFork.png)
4031

4132
* Sticking with our analogy, we want to take back a copy of this exam (lab) back to our desk. That is what Github is asking us now, which desk? We want to bring it back to our desk, so click your account here. My account here is the upper left one.
4233

4334
* As soon as you tap your account here, you should be presented with the following screen. It might come and go VERY fast (where you barely see it), but this is what it looks like:
4435

45-
![Loading](http://i.imgur.com/6D0Y5ZO.png?1)
36+
![Loading](https://s3.amazonaws.com/learn-verified/HelloUniverseClone.png)
4637

4738
* It's got a picture of a fork, a book and a photocopy machine, Github is also using our analogy!. Here, we are forking (or creating a copy) of the repository (lab) and having our own version of this repository (lab) on our account.
4839

4940
* When that is complete, we should be brought to a screen that looks like this :
5041

51-
![finalScreen](http://i.imgur.com/iUj6ehB.png?1)
42+
![finalScreen](https://s3.amazonaws.com/learn-verified/HelloUniverseFinal.png)
5243

5344
* That looks familiar too! We now have our repository (exam) where we can begin working! Not so fast. We have our own version of this repository stored on our account on Github, but we need to now bring down these various files associated with the repository to our local machine (the computer you're sitting at!).
5445
* Once these files associated with this repository are downloaded to our computer, we can open the necessary files the instructions tell us to open and begin writing code!
5546
* How do we download these files to our computer?
56-
* First things first, this next step isn't *required*, but we do **HIGHLY** suggest it, and that's generating an SSH Key. This will allow for you to clone (download) these files down to your computer without forcing you to enter in your Username & Password (for github) every single time. This will save you a lot of time. You can read about how you can set up your SSH Key [here](https://help.github.com/articles/generating-an-ssh-key/).
57-
* Then click the green "Clone or download" button in the right-center of the Github page.
47+
* Click the green "Clone or download" button in the right-center of the Github page.
5848

59-
![Clone](http://i.imgur.com/18eFeXU.png?1)
49+
![Clone](https://s3.amazonaws.com/learn-verified/HelloUniverseCloneIt.png)
6050

61-
* What we're most concerned with now is the link presented to the left of the copy clipboard icon.
51+
* What we're most concerned with now is the link presented to the left of the copy clipboard icon. You want to make sure it states Clone with SSH, if it doesn't, select that before copying the link. You should have setup your SSH key in the Welcome Reading. If you haven't done that yet, please scroll to the section of Setting Up Github at this link [here](https://github.com/learn-co-curriculum/swift-welcome). Follow those steps to setup your SSH key.
6252

6353
![clipboard](http://i.imgur.com/0OVoQar.png?1)
6454

@@ -111,23 +101,23 @@
111101

112102
* After entering your directory, you can type `ls` to see what's inside. (`ls` is a command that will list all the files and folders that are in the particular directory that you're in.)
113103

114-
![dirin](http://i.imgur.com/0si02mC.png?1)
104+
![dirin](https://s3.amazonaws.com/learn-verified/HelloUniverseTerm1.png)
115105

116106
* There are a bunch of files, the same ones we were able to see when we first forked the lab.
117107
* We generally write our code in a few files. Here (in this example), we need to open the `HelloUniverse.xcworkspace` file. The lab should instruct you on what file to open (usually). If not, in general it's either going to be the `.xcodeproj` file or the `.xcworkspace` file.
118108

119109
* We want to begin by typing `open` in Terminal, followed by `HelloUniverse.xcworkspace`. Auto-complete is your friend. Don't forget when beginning to type Interface, you can hit the tab key to help complete it.
120110
* Then hit return, it should open Xcode up for you.
121111

122-
![return](http://i.imgur.com/AqL1hWk.png?1)
112+
![return](https://s3.amazonaws.com/learn-verified/HelloUniverseTerm2.png)
123113

124114
* Xcode should now be displayed on screen like so:
125115

126-
![Xcode](http://i.imgur.com/gEocyMt.png?1)
116+
![Xcode](https://s3.amazonaws.com/learn-verified/HelloUniverseXcode1.png)
127117

128118
* In the left pane is where you should see various files. The instructions for each lab should direct you to the file where you should be writing your code. For instance, we will select the `Greeting.swift` file. After doing so, Xcode will look like this:
129119

130-
![Xcodeagain](http://i.imgur.com/wGKQGhX.png?1)
120+
![Xcodeagain](https://s3.amazonaws.com/learn-verified/HelloUniverseXcode2.png)
131121

132122
Where it states `// Implement your function here`, that is where you will be writing your code.
133123

@@ -152,14 +142,14 @@ To see the tests for yourself, locate the `GreetingTest.swift` file like so:
152142

153143
Locate the `GreetingTest.swift` file in the Project navigator, like so:
154144

155-
![](http://i.imgur.com/ZL1XYGE.png?1)
145+
![](https://s3.amazonaws.com/learn-verified/HelloUniverseXcodeTests.png)
156146

157147

158148
Lets run the tests and see what happens.
159149

160150
**Press command + u**
161151

162-
![](http://i.imgur.com/JbYzhTc.png?1)
152+
![](https://s3.amazonaws.com/learn-verified/HelloUniverseXcodeTestComplete.png)
163153

164154
Now that we completed the lab, we need to submit a **Pull request**.
165155

@@ -193,7 +183,7 @@ Now that we completed the lab, we need to submit a **Pull request**.
193183

194184
* So let's get back to Github! You should be here:
195185

196-
![backhere](http://i.imgur.com/Ltvpjwl.png?1)
186+
![backhere](https://s3.amazonaws.com/learn-verified/HelloUniverseBackHome.png)
197187

198188
* Towards the left-middle of the page, you should see a gray button labeled "New pull request". Click that button. You should be brought to a screen that looks like this:
199189

HelloToTheUniverse/Greeting.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ class Greeting {
1515
// We created the function for you! Press command + u to run the tests.
1616

1717
func helloUniverse() -> String {
18+
print("Hello everyone!")
1819
return "Hello Universe!"
1920
}
2021

2122
}
23+

0 commit comments

Comments
 (0)