Tags All Entries

Install Absinthe in a Phoenix project

diff --git a/app/mix.exs b/app/mix.exs
index f9ecb0d..0ee3f37 100644
--- a/app/mix.exs
+++ b/app/mix.exs
@@ -20,7 +20,7 @@ defmodule Bivwac.MixProject do
   def application do
     [
       mod: {Bivwac.Application, []},
-      extra_applications: [:logger, :runtime_tools]
+      extra_applications: [:logger, :runtime_tools, :absinthe_plug]
     ]
   end

@@ -33,6 +33,8 @@ defmodule Bivwac.MixProject do
   # Type `mix help deps` for examples and options.
   defp deps do
     [
+      {:absinthe, "~> 1.4.0"},
+      {:absinthe_plug, "~> 1.4.0"},
       {:bcrypt_elixir, "~> 1.1"},
       {:distillery, "~> 2.0"},
       {:ecto_sql, "~> 3.0"},
@@ -43,6 +45,7 @@ defmodule Bivwac.MixProject do
       {:phoenix_html, "~> 2.11"},
       {:phoenix_live_reload, "~> 1.2", only: :dev},
       {:phoenix_pubsub, "~> 1.1"},
+      {:poison, "~> 3.1.0"},
       {:plug_cowboy, "~> 2.0"},
       {:postgrex, ">= 0.0.0"}
     ]
  1. mix deps.get
  2. Commit mix.exs and lock file

https://timber.io/blog/a-gentle-introduction-to-graphql-with-elixir-and-phoenix/

Links to this note