Posted in Programming

Get yourself a Git!!

Ok, we have the project and now we need to make it ready to version it and then, no more headaches. If you don’t have a project, create one following thise simple steps. So let’s start.

The first thing you need is to have an account on GitHub. It’s very easy, no problems: GitHub Account.

And following with the easy part, on the right top there is the plus button.

GitHub start page
GitHub start page

The plus button is a fast lane to add a new Repository or a new Organization. We want the new Repository, of course.

New Repository GitHub
New Repository GitHub

And after that…

Creating a New Repository on GitHub
Creating a New Repository on GitHub

We just need to set our repository details, I mean data as the name of the repository ( actually the name of the project) and a description. The user has to chose if it is a private account or a public. GitHub is an open source network, and encourages you to always make it public in a very effective way: billing the private projects. That means you have to have a paid account to have a private project. That’s why mine is public 😉

And just hit Create Repository, no secrets, no changes at the rest of the settings. What will lead you to this screen:

GitHub New Empty Repository
GitHub New Empty Repository

Quite creepy, isn’t it?

Yeah! but this is only GitHub telling what you’re supposed to do, in our case, with Terminal on our Mac. That means the GitHub part is practically over.

Let’s head to the Terminal and navigate with ls and cd to your workspace (for mac users: alt/option + tab helps to fill the folder name, but beware of the capitals)

Navigate to your project
Navigate to your project

ok, looking back to the last git string, it shows us a interesting (creepy) code:

echo "# AppName" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/nanyoliveira/AppName.git
git push -u origin master

But actually this code, beside creepy, is teaching us what we have to do on terminal (if we already don’t know).

First of all let’s initiate the git into the project folder on Terminal with “git init”. Yeah. Just like it.

And then just add the changed documents with “git add .” ( yeah, with this point after add, and a space before the point! it tells the computer you want to add all the content in this folder).

And then do our first commit, please write a nice message 😉
“git commit -m “the basis of our project” ” (like that, with the message under double quotation marks).

One of the main things is the telling your mac where it’s going to send your project, so that’s why you add a origin with “git remote add origin” with the secured url(https://) where the .git is -> git tells you in this creepy code part:

git remote add origin https://github.com/nanyoliveira/AppName.git

and then you just hit push. Oh! yeah, in a git way: “git push -u origin master”

if you have a brunch on git, you can push to your brunch name: “git push -u origin brunchName”.

The terminal it’s going to ask your username to github and your password (it’s ok, the password, for security reasons doesn’t show when the user is typing). And voilá! It’s done, just reload your Github repository to see your beautiful project in there.

Posted in Programming

Creating a project

This is definitely the easiest part of a project. And, probably every developer knows. I don’t know about you, but I’m fed up with every tutorial in web you have to pass through it. So I’m going to do different. There’s why I’m going just to create a project here.


Open the Xcode and click on Create a new Xcode project as showing in the image below

Xcode start menu
Xcode start menu

Now, in the left menu IOS, click on Application  and choose Single View Application, as shown in the image below.

Xcode application type screen
Xcode application type screen

Now it’s time for the New Project Set Up.

Xcode New project options
Xcode New project options

In this screen you an set all basic things related with your project, where the Product Name is the name of your app.

Organization Name is optional, and it’s the place you sign your project company’s name that shows up in App Store.

The Organization Identifier is the main source of the Bundle Identifier, which is your application ID that needs to be unique and uses the reverse domain name service to make sure of it.

You can set in the language, at this current moment, you can use either Objective-C or Swift, as shown in the picture below

Objective-C or Swift
Objective-C or Swift

After pressing Next, you will be lead to chose where in your computer the project will be allocated. I suggest a specific folder to use as a Workspace, I have to myself it’s more organised this way.

Place to save the project
Place to save the project

After pressing Create, you will be able to see all the project details and folders. The image below is a print screen of a swift project:

Xcode project created
Xcode project created

Now it’s just start coding, or planning a UX 😉