Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 21 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ The purpose of this example is to provide details as to how one would go about u

- Elixir 1.13.0 or newer

- Erlang 24.1.1 or newer
- Erlang 24.1.2 or newer

- Phoenix 1.5.13 or newer

- PostgreSQL 13.4 or newer
- PostgreSQL 14.0 or newer

Note: This tutorial was updated on macOS 11.6.

Expand All @@ -28,39 +28,37 @@ Note: This tutorial was updated on macOS 11.6.

1. clone this repository

```bash
```zsh
git clone https://github.com/conradwt/zero-to-graphql-using-phoenix.git
```

2. change directory location

```bash
cd /path/to/zero-to-graphql-using-phoenix
```zsh
cd zero-to-graphql-using-phoenix
```

3. install and compile dependencies

```bash
```zsh
mix do deps.get, deps.compile
```

4. create, migrate, and seed the database

```bash
mix ecto.create
mix ecto.migrate
mix ecto.seed
```zsh
mix ecto.setup
```

5. start the server

```bash
```zsh
mix phx.server
```

6. navigate to our application within the browser

```bash
```zsh
open http://localhost:4000/graphiql
```

Expand Down Expand Up @@ -96,15 +94,15 @@ Note: This tutorial was updated on macOS 11.6.

1. create the project

```bash
```zsh
mix phx.new zero-to-graphql-using-phoenix --app zero_phoenix --module ZeroPhoenix --no-webpack
```

Note: Just answer 'y' to all the prompts that appear.

2. switch to the project directory

```bash
```zsh
cd zero-to-graphql-using-phoenix
```

Expand All @@ -117,13 +115,13 @@ Note: This tutorial was updated on macOS 11.6.

4. create the database

```bash
```zsh
mix ecto.create
```

5. generate contexts, schemas, and migrations for the `Person` resource

```bash
```zsh
mix phx.gen.context Account Person people first_name:string last_name:string username:string email:string
```

Expand Down Expand Up @@ -161,13 +159,13 @@ Note: This tutorial was updated on macOS 11.6.

7. migrate the database

```bash
```zsh
mix ecto.migrate
```

8. generate contexts, schemas, and migrations for the `Friendship` resource

```bash
```zsh
mix phx.gen.context Account Friendship friendships person_id:references:people friend_id:references:people
```

Expand Down Expand Up @@ -226,7 +224,7 @@ Note: This tutorial was updated on macOS 11.6.

11. migrate the database

```bash
```zsh
mix ecto.migrate
```

Expand Down Expand Up @@ -372,7 +370,7 @@ Note: This tutorial was updated on macOS 11.6.

16. seed the database

```bash
```zsh
mix run priv/repo/seeds.exs
```

Expand Down Expand Up @@ -401,7 +399,7 @@ Note: This tutorial was updated on macOS 11.6.

18. install and compile dependencies

```bash
```zsh
mix do deps.get, deps.compile
```

Expand Down Expand Up @@ -502,13 +500,13 @@ Note: This tutorial was updated on macOS 11.6.

23. start the server

```bash
```zsh
mix phx.server
```

24. navigate to our application within the browser

```bash
```zsh
open http://localhost:4000/graphiql
```

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule ZeroPhoenix.Mixfile do
def project do
[
app: :zero_phoenix,
version: "2.4.4",
version: "2.5.0",
elixir: "~> 1.13.0-dev",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:gettext] ++ Mix.compilers(),
Expand Down