Skip to content

Commit

Permalink
continue updating tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasburk committed Sep 4, 2019
1 parent 1b733fa commit c1d976a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ When prompted by the wizard, select the **Blank project** option.

### 2.2. Select your database type

Next, the wizard prompts you to select a database.

1. Select **PostgreSQL** (or use SQLite if you don't have a PostgreSQL database)
Next, the wizard prompts you to select a database. Select **PostgreSQL** (or use SQLite if you don't have a PostgreSQL database running anywhere).

![](https://imgur.com/Ktx0oB8.png)

### 2.3. Provide your database credentials

Note that you can skip this part if you've selected SQLite before.

1. Provide your database credentials:
- **Host**: IP address or domain where your PostgreSQL server is running
- **Port**: Port on which your PostgreSQL server is listening, typically `5432`
Expand Down Expand Up @@ -175,7 +175,7 @@ The Prisma schema contains three important elements of your project:

- Data sources (here, that's your PostgreSQL database)
- Generators (here, that's the generator for Photon.js)
- [Data model definition](./data-modeling.md#data-model-definition) (the `Post` and `User` models)
- [Data model definition](./data-modeling.md#data-model-definition) (here, that's the `Post` and `User` models)

You can also add the `output` field to the `generator` block to specify the file path where Photon.js should be generated. Since you're not explicitly specifying the `output` here, it uses the default path which is the project's `node_modules` directory. Learn more about the specifics of generating Photon into `node_modules` [here](./photon/codegen-and-node-setup.md).

Expand Down Expand Up @@ -385,8 +385,8 @@ main()
Here's a quick rundown of what's happening in the code:

1. Create two users named _Alice_ and _Bob_ using `photon.users.create(...)`
1. _Alice_ has one post titled _Watch the talks from Prisma Day 2019_
1. _Bob_ has two posts titled _Subscribe to GraphQL Weekly for community news_ and _Follow Prisma on Twitter_
- _Alice_ has one post titled _Watch the talks from Prisma Day 2019_
- _Bob_ has two posts titled _Subscribe to GraphQL Weekly for community news_ and _Follow Prisma on Twitter_
1. Retrieve all _published_ posts using `photon.posts.findMany(...)`
1. Create a new post titled _Join the Prisma Slack community_ connected to the user _Alice_ by her email address
1. Publish _Alice_'s newly created post using `photon.posts.update(...)`
Expand Down

0 comments on commit c1d976a

Please sign in to comment.