From 5deb55bb09e41af50bf9a752aba713d8c7dbc307 Mon Sep 17 00:00:00 2001 From: Conrad Taylor Date: Sun, 3 Oct 2021 23:07:38 -0700 Subject: [PATCH 1/2] Bump version to 2.5.0 --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index e23b0e2..938a8de 100644 --- a/mix.exs +++ b/mix.exs @@ -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(), From 0e224eb03c695b3a592c82da4140711efbe377f6 Mon Sep 17 00:00:00 2001 From: Conrad Taylor Date: Tue, 12 Oct 2021 22:26:41 -0700 Subject: [PATCH 2/2] Update software requirements and change shell. --- README.md | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 89d4f4c..d15225e 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 ``` @@ -96,7 +94,7 @@ 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 ``` @@ -104,7 +102,7 @@ Note: This tutorial was updated on macOS 11.6. 2. switch to the project directory - ```bash + ```zsh cd zero-to-graphql-using-phoenix ``` @@ -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 ``` @@ -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 ``` @@ -226,7 +224,7 @@ Note: This tutorial was updated on macOS 11.6. 11. migrate the database - ```bash + ```zsh mix ecto.migrate ``` @@ -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 ``` @@ -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 ``` @@ -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 ```