Skip to content

Conversation

@alexwishart
Copy link

@alexwishart alexwishart commented Dec 6, 2017

Some syntax changes (highlighting/capatilisation), code fixes and additional info added. Have also added screenshot to help with Xcode scheme changes.

Do we need to add a license (and the respective badge to the header)? Also, haven't added the "Mac OS" badge to the header, but might also want to put that in as tutorial is only for Mac?

Alex Wishart added 2 commits December 6, 2017 13:23
Some syntax changes (highlighting/capatilisation), code fixes and additional info added
pod install
```
6. Open the FoodTracker Application in Xcode
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make this Application lower case too?

This Xcode workspace contains the food tracker mobile app, which can be run by clicking the play button.
This Xcode workspace contains the FoodTracker mobile app, which can be run by clicking the play button.

## Connecting A PostgreSQL Database

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make the A lower case to match the title below?

README.md Outdated
6. Type `\q` and then press ENTER to quit `psql`.

### Adding Swift-Kuery dependencies to your server
[Swift-Kuery](https://github.com/IBM-Swift/Swift-Kuery) is a database abstraction layer, it works alongside a specific database library, such as [Swift-Kuery-PostgreSQL](https://github.com/IBM-Swift/Swift-Kuery-PostgreSQL), to allow a user to easily query a SQL database in Swift. These two libraries are added to our Package.swift file, so the Server can access them.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Package.swift here should have back-ticks around it.

README.md Outdated
To work with the meals table in the database, Swift-Kuery requires a matching class. We will now create a `Meals` class to match the meals table we created earlier in PostgreSQL.

1. Open your `Sources > Application > Meal.swift` file
1. In Xocde, open your `Sources > Application > Meal.swift` file.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Xocde!

import SwiftKueryPostgreSQL
```
6. Inside the `App` class create a `Meals` table object by inserting the line:
6. Inside the `App` class create an instance of the `Meals` table object by inserting the following line:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 150 needs changing (sorry it isn't this line)... it is "We will now connect to our server to the PostgreSQL database. " there are too many to's!

@helenmasters
Copy link

@tunniclm I believe that you're going to do a technical review on this code for Andy. Please can you answer Alex's question about whether we need to add a license as this tutorial actually contains code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants